diff options
Diffstat (limited to 'engines/agos/gfx.cpp')
-rw-r--r-- | engines/agos/gfx.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp index a370e42046..2a6b5e2cab 100644 --- a/engines/agos/gfx.cpp +++ b/engines/agos/gfx.cpp @@ -959,10 +959,7 @@ void AGOSEngine::animate(uint windowNum, uint zoneNum, uint vgaSpriteId, uint x, p += sizeof(AnimationHeader_Simon); } - if (READ_BE_UINT16(&((AnimationHeader_Simon *) p)->id) != vgaSpriteId) { - debug(0, "setImage: Animation %d not found.", vgaSpriteId); - return; - } + assert(READ_BE_UINT16(&((AnimationHeader_Simon *) p)->id) == vgaSpriteId); } else { p = pp + READ_BE_UINT16(pp + 10); p += 20; @@ -1072,12 +1069,7 @@ void AGOSEngine::setImage(uint16 vga_res_id, bool vgaScript) { break; b += sizeof(ImageHeader_Simon); } - - - if (READ_BE_UINT16(&((ImageHeader_Simon *) b)->id) != vga_res_id) { - debug(0, "setImage: Image %d not found.", vga_res_id); - return; - } + assert(READ_BE_UINT16(&((ImageHeader_Simon *) b)->id) == vga_res_id); } else { b = bb + READ_BE_UINT16(bb + 10); b += 20; |