From 9ae7bab9f211f240f9c7f35cb909c24e278d9552 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 5 Oct 2006 16:43:11 +0000 Subject: I hope this is the right fix for an "invalid opcode" message right after SET_PATHFIND_ITEM when dumping scripts. If so, perhaps it should be on the 0.9 branch as well. On the other hand, it only happens when debugging... svn-id: r24125 --- engines/agos/debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agos') diff --git a/engines/agos/debug.cpp b/engines/agos/debug.cpp index 86baf0fb10..f02ae66d06 100644 --- a/engines/agos/debug.cpp +++ b/engines/agos/debug.cpp @@ -206,7 +206,7 @@ void AGOSEngine::dump_video_script(const byte *src, bool one_opcode_only) { } if (opcode >= _numVideoOpcodes) { - error("Invalid opcode %x\n", opcode); + error("Invalid opcode %x", opcode); return; } @@ -251,7 +251,7 @@ void AGOSEngine::dump_video_script(const byte *src, bool one_opcode_only) { readUint16Wrapper(src + 2)); src += 4; } - src++; + src += 2; break; default: error("Invalid fmt string '%c' in decompile VGA", *str); -- cgit v1.2.3