[Scummvm-cvs-logs] CVS: scummvm/scumm bundle.cpp,1.4,1.5

James Brown ender at users.sourceforge.net
Thu Oct 10 08:50:06 CEST 2002


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

Modified Files:
	bundle.cpp 
Log Message:
Work around crash in The Dig, which occurs when the music reaches the 
end


Index: bundle.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/bundle.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- bundle.cpp	15 Sep 2002 19:28:34 -0000	1.4
+++ bundle.cpp	10 Oct 2002 15:49:33 -0000	1.5
@@ -224,6 +224,11 @@
 int32 Bundle::decompressMusicSampleByName(char *name, int32 number, byte *comp_final) {
 	int32 final_size = 0, i;
 
+	if (!name) {
+		warning("Bundle: decompressMusicSampleByName called with no name!");
+		return 0;
+	}
+
 	if (_musicFile.isOpen() == false) {
 		warning("Bundle: music file is not open!");
 		return 0;





More information about the Scummvm-git-logs mailing list