Skip to content

Commit

Permalink
Merge branch 'MainMenuRewrite' of https://github.com/Rubberduckycooly…
Browse files Browse the repository at this point in the history
  • Loading branch information
stxticOVFL committed Oct 22, 2021
2 parents 0dc6f57 + d33f91e commit 95d236c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions RSDKv4/Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4864,9 +4864,14 @@ void ProcessScript(int scriptCodePtr, int jumpTablePtr, byte scriptEvent)
}
case FUNC_RETURN:
opcodeSize = 0;
scriptCodePtr = functionStack[--functionStackPos];
jumpTablePtr = functionStack[--functionStackPos];
scriptDataPtr = functionStack[--functionStackPos];
if (!functionStackPos) { //event, stop running
running = false;
}
else { //function, jump out
scriptCodePtr = functionStack[--functionStackPos];
jumpTablePtr = functionStack[--functionStackPos];
scriptDataPtr = functionStack[--functionStackPos];
}
break;
case FUNC_SETLAYERDEFORMATION:
opcodeSize = 0;
Expand Down

0 comments on commit 95d236c

Please sign in to comment.