[Scummvm-cvs-logs] CVS: scummvm/simon vga.cpp,1.69,1.70

Travis Howell kirben at users.sourceforge.net
Wed Jul 16 05:22:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv18456a/simon

Modified Files:
	vga.cpp 
Log Message:

This is actually needed


Index: vga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- vga.cpp	15 Jul 2003 16:40:24 -0000	1.69
+++ vga.cpp	16 Jul 2003 12:21:09 -0000	1.70
@@ -1121,6 +1121,11 @@
 	uint16 pri = vc_read_next_word();
 	VgaSprite bak;
 
+	if (vsp->id == 0) {
+		debug(1,"Tried to set pri for unknown id %d", _vga_cur_sprite_id);
+		return;
+	}
+
 	memcpy(&bak, vsp, sizeof(bak));
 	bak.priority = pri;
 	bak.unk6 |= 0x8000;





More information about the Scummvm-git-logs mailing list