From 22a14014b3fee7bdd4220f6b21d065f3a10763bb Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 7 Oct 2006 03:43:51 +0000 Subject: Minor cleanup svn-id: r24159 --- engines/agos/debug.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/agos/debug.cpp') diff --git a/engines/agos/debug.cpp b/engines/agos/debug.cpp index 8a59f13481..64ffc5c83a 100644 --- a/engines/agos/debug.cpp +++ b/engines/agos/debug.cpp @@ -276,9 +276,9 @@ void AGOSEngine::dump_vga_file(const byte *vga) { int count; pp = vga; - p = pp + READ_BE_UINT16(&((const VgaFileHeader_Simon *) pp)->hdr2_start); - count = READ_BE_UINT16(&((const VgaFileHeader2_Simon *) p)->animationCount); - p = pp + READ_BE_UINT16(&((const VgaFileHeader2_Simon *) p)->animationTable); + p = pp + READ_BE_UINT16(pp + 4); + count = READ_BE_UINT16(&((const VgaFileHeader2_Common *) p)->animationCount); + p = pp + READ_BE_UINT16(&((const VgaFileHeader2_Common *) p)->animationTable); while (--count >= 0) { int id = READ_BE_UINT16(&((const AnimationHeader_Simon *) p)->id); @@ -287,9 +287,9 @@ void AGOSEngine::dump_vga_file(const byte *vga) { } pp = vga; - p = pp + READ_BE_UINT16(&((const VgaFileHeader_Simon *) pp)->hdr2_start); - count = READ_BE_UINT16(&((const VgaFileHeader2_Simon *) p)->imageCount); - p = pp + READ_BE_UINT16(&((const VgaFileHeader2_Simon *) p)->imageTable); + p = pp + READ_BE_UINT16(pp + 4);; + count = READ_BE_UINT16(&((const VgaFileHeader2_Common *) p)->imageCount); + p = pp + READ_BE_UINT16(&((const VgaFileHeader2_Common *) p)->imageTable); while (--count >= 0) { int id = READ_BE_UINT16(&((const ImageHeader_Simon *) p)->id); -- cgit v1.2.3