aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-09-10 01:55:37 +0000
committerTravis Howell2004-09-10 01:55:37 +0000
commit67f7c40446bf28ce28401ef2e97bf4dd2f334a95 (patch)
tree07ee877fb1ddcf46796fc32ada5a52989a31e400
parentc7d28132b4240c7c253ad91904f59cf3dd896e4d (diff)
downloadscummvm-rg350-67f7c40446bf28ce28401ef2e97bf4dd2f334a95.tar.gz
scummvm-rg350-67f7c40446bf28ce28401ef2e97bf4dd2f334a95.tar.bz2
scummvm-rg350-67f7c40446bf28ce28401ef2e97bf4dd2f334a95.zip
Ooops, actually clear _roomVars.
svn-id: r14986
-rw-r--r--scumm/scumm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 03d637d35d..1128d7cac0 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -2302,8 +2302,10 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
_sound->processSoundQues();
// Clear the room variables
- if (_heversion >= 80)
- memset(_roomVars, 0, sizeof(_roomVars));
+ if (_heversion >= 80) {
+ for (i = 0; i < _numRoomVariables; i++)
+ _roomVars[i] = 0;
+ }
for (i = 1; i < _numActors; i++) {
_actors[i].hideActor();