From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 14:38:57 +0000 (+0200) Subject: CALL instructions need to offset the st++ too X-Git-Tag: 0.1-rc1~241 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=84bc8f36623735af2f3a9bb1da5313bfdade0b76;p=xonotic%2Fgmqcc.git CALL instructions need to offset the st++ too --- diff --git a/execloop.h b/execloop.h index af544b9..1af144a 100644 --- a/execloop.h +++ b/execloop.h @@ -312,7 +312,7 @@ while (1) { builtinnumber, prog->filename); } else - st = prog->code + prog_enterfunction(prog, newf); + st = prog->code + prog_enterfunction(prog, newf) - 1; /* offset st++ */ if (prog->vmerror) goto cleanup; break;