From f6283094acebd6ea0587689716cf749d0a352a9d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 May 2016 19:04:59 +0200 Subject: AGI: Remove useless code. We set vtEntries to SCREENOBJECTS_MAX, thus, the loop for (i = vtEntries; i < SCREENOBJECTS_MAX; i++) is a no-op. --- engines/agi/saveload.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'engines/agi') diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index 09fce9320b..aa46cf4e9f 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -689,9 +689,6 @@ int AgiEngine::loadGame(const Common::String &fileName, bool checkId) { } } } - for (i = vtEntries; i < SCREENOBJECTS_MAX; i++) { - memset(&_game.screenObjTable[i], 0, sizeof(ScreenObjEntry)); - } // Fix some pointers in screenObjTable -- cgit v1.2.3