[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.27,1.28

James Brown ender at users.sourceforge.net
Tue May 14 12:45:05 CEST 2002


Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv3482/simon

Modified Files:
	simon.cpp 
Log Message:
fix some warnings, odd code, and prevent Simon segfaulting when wrong game specified.



Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- simon.cpp	5 May 2002 20:04:26 -0000	1.27
+++ simon.cpp	14 May 2002 19:44:41 -0000	1.28
@@ -427,6 +427,9 @@
 	i = 0;
 
 	string_ptr = table[*ptr++];
+	if (!string_ptr)
+		error("Unable to locate opcode table. Perhaps you are using the wrong game target?");
+
 	for(;;) {
 		if (string_ptr[i] == ' ')
 			return ptr;





More information about the Scummvm-git-logs mailing list