diff options
author | Torbjörn Andersson | 2006-10-05 16:43:11 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-10-05 16:43:11 +0000 |
commit | 9ae7bab9f211f240f9c7f35cb909c24e278d9552 (patch) | |
tree | 7053a370e7832235239c016d79e10481cb4e57ea | |
parent | dcbad3a1ab92b8c2c6e5ec9939a75d74ce7eb6b3 (diff) | |
download | scummvm-rg350-9ae7bab9f211f240f9c7f35cb909c24e278d9552.tar.gz scummvm-rg350-9ae7bab9f211f240f9c7f35cb909c24e278d9552.tar.bz2 scummvm-rg350-9ae7bab9f211f240f9c7f35cb909c24e278d9552.zip |
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
-rw-r--r-- | engines/agos/debug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |