[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.179,1.180

Jonathan Gray khalek at users.sourceforge.net
Thu Aug 14 20:19:15 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv26406

Modified Files:
	script_v6.cpp 
Log Message:
assert that string variable actually exists before we start doing comparisons against the string

Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -d -r1.179 -r1.180
--- script_v6.cpp	13 Aug 2003 23:07:05 -0000	1.179
+++ script_v6.cpp	15 Aug 2003 03:15:41 -0000	1.180
@@ -2386,6 +2386,7 @@
 //					_imuseDigital->stopAll();
 //				}
 				uint32 speed;
+				assert(getStringAddressVar(VAR_VIDEONAME));
 				if (strcmp((char *)getStringAddressVar(VAR_VIDEONAME), "sq3.san") == 0)
 					speed = 71000;
 				else {





More information about the Scummvm-git-logs mailing list