From 67f7c40446bf28ce28401ef2e97bf4dd2f334a95 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 10 Sep 2004 01:55:37 +0000 Subject: Ooops, actually clear _roomVars. svn-id: r14986 --- scumm/scumm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scumm/scumm.cpp') 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(); -- cgit v1.2.3