Skip to content

Commit

Permalink
AGI: Remove useless code.
Browse files Browse the repository at this point in the history
We set vtEntries to SCREENOBJECTS_MAX, thus, the loop
for (i = vtEntries; i < SCREENOBJECTS_MAX; i++) is a no-op.
  • Loading branch information
sev- committed May 17, 2016
1 parent 33abb61 commit f628309
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions engines/agi/saveload.cpp
Expand Up @@ -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

Expand Down

0 comments on commit f628309

Please sign in to comment.