From 79228e433130aada7527842920084a1bb80e3d80 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 23 Oct 2012 04:05:45 +0000 Subject: [PATCH] - Fixed: The disassembly for jmp opcodes displayed the wrong address. SVN r3904 (scripting) --- src/zscript/vmdisasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zscript/vmdisasm.cpp b/src/zscript/vmdisasm.cpp index b6531e85b8..fed5eb39a2 100644 --- a/src/zscript/vmdisasm.cpp +++ b/src/zscript/vmdisasm.cpp @@ -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: