[Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.183,1.184

Travis Howell kirben at users.sourceforge.net
Thu Sep 9 18:56:08 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9348/scumm

Modified Files:
	scumm.cpp 
Log Message:

Ooops, actually clear _roomVars.


Index: scumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- scumm.cpp	9 Sep 2004 04:27:57 -0000	1.183
+++ scumm.cpp	10 Sep 2004 01:55:37 -0000	1.184
@@ -2302,8 +2302,10 @@
 	_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();





More information about the Scummvm-git-logs mailing list