aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2003-07-16 12:21:09 +0000
committerTravis Howell2003-07-16 12:21:09 +0000
commitf91fb2980a9c23bd191e1455042a44f7d1b212a0 (patch)
treebadb820b15697da1ffcf71131c2e0e0e80cf9308 /simon
parenta488dfe7330e93930ee989bc9dc5a1ebe2642cac (diff)
downloadscummvm-rg350-f91fb2980a9c23bd191e1455042a44f7d1b212a0.tar.gz
scummvm-rg350-f91fb2980a9c23bd191e1455042a44f7d1b212a0.tar.bz2
scummvm-rg350-f91fb2980a9c23bd191e1455042a44f7d1b212a0.zip
This is actually needed
svn-id: r9049
Diffstat (limited to 'simon')
-rw-r--r--simon/vga.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp
index c7d0fa0903..fa6ef79606 100644
--- a/simon/vga.cpp
+++ b/simon/vga.cpp
@@ -1121,6 +1121,11 @@ void SimonEngine::vc_23_set_sprite_priority() {
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;