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
This commit is contained in:
Torbjörn Andersson 2006-10-05 16:43:11 +00:00
parent dcbad3a1ab
commit 9ae7bab9f2

View File

@ -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);