- Fixed: The disassembly for jmp opcodes displayed the wrong address.

SVN r3904 (scripting)
This commit is contained in:
Randy Heit 2012-10-23 04:05:45 +00:00
parent 0dae6527ad
commit 79228e4331

View file

@ -209,7 +209,7 @@ void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction
{
case OP_JMP:
case OP_TRY:
col = printf_wrapper(out, "%08x", i + 4 + (code[i].i24 << 2));
col = printf_wrapper(out, "%08x", (i + 1 + code[i].i24) << 2);
break;
case OP_PARAMI: