mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 10:21:03 +00:00
CALL instructions need to offset the st++ too
This commit is contained in:
parent
32c095b622
commit
84bc8f3662
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue