- 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
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction
{ {
case OP_JMP: case OP_JMP:
case OP_TRY: 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; break;
case OP_PARAMI: case OP_PARAMI: