[Scummvm-cvs-logs] CVS: scummvm resource.cpp,1.79,1.80

Max Horn fingolfin at users.sourceforge.net
Sat May 11 13:01:05 CEST 2002


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

Modified Files:
	resource.cpp 
Log Message:
fixed Indy 4 crash with a hack

Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/resource.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- resource.cpp	8 May 2002 06:57:27 -0000	1.79
+++ resource.cpp	11 May 2002 20:00:32 -0000	1.80
@@ -419,7 +419,9 @@
 
 	debug(9, "loadCharset(%d)", no);
 
-
+	/* FIXME - hack around crash in Indy4 (occurs if you try to load after dieing) */
+	if (_gameId == GID_INDY4 && no == 0)
+		no = 1;
 
 	memset(_charsetData, 0, sizeof(_charsetData));
 





More information about the Scummvm-git-logs mailing list