aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-17 19:04:59 +0200
committerEugene Sandulenko2016-05-17 19:04:59 +0200
commitf6283094acebd6ea0587689716cf749d0a352a9d (patch)
treeee7d22c77301d78ce459e5e610088d5024fd65ef /engines/agi
parent33abb6118f9551c6a4afc05ad35de6f630ccb152 (diff)
downloadscummvm-rg350-f6283094acebd6ea0587689716cf749d0a352a9d.tar.gz
scummvm-rg350-f6283094acebd6ea0587689716cf749d0a352a9d.tar.bz2
scummvm-rg350-f6283094acebd6ea0587689716cf749d0a352a9d.zip
AGI: Remove useless code.
We set vtEntries to SCREENOBJECTS_MAX, thus, the loop for (i = vtEntries; i < SCREENOBJECTS_MAX; i++) is a no-op.
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/saveload.cpp3
1 files changed, 0 insertions, 3 deletions
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