[Scummvm-cvs-logs] CVS: scummvm/scumm script_v2.cpp,1.31,1.32

Jonathan Gray khalek at users.sourceforge.net
Fri Oct 18 02:57:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv4301

Modified Files:
	script_v2.cpp 
Log Message:
a few small changes to make  the full throttle demo work

Index: script_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v2.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- script_v2.cpp	18 Oct 2002 04:33:46 -0000	1.31
+++ script_v2.cpp	18 Oct 2002 09:56:29 -0000	1.32
@@ -733,7 +733,8 @@
 void Scumm::writeArray(int array, int idx, int base, int value)
 {
 	ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array));
-	assert(ah);
+	if (!ah)
+		return;
 	base += idx * ah->dim1_size;
 
 	assert(base >= 0 && base < ah->dim1_size * ah->dim2_size);





More information about the Scummvm-git-logs mailing list