Skip to content

Commit

Permalink
Clam
Browse files Browse the repository at this point in the history
  • Loading branch information
stxticOVFL committed Oct 22, 2021
1 parent 95d236c commit 09e5300
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RSDKv4/Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4863,11 +4863,11 @@ void ProcessScript(int scriptCodePtr, int jumpTablePtr, byte scriptEvent)
break;
}
case FUNC_RETURN:
opcodeSize = 0;
if (!functionStackPos) { //event, stop running
opcodeSize = 0;
if (!functionStackPos) { // event, stop running
running = false;
}
else { //function, jump out
else { // function, jump out
scriptCodePtr = functionStack[--functionStackPos];
jumpTablePtr = functionStack[--functionStackPos];
scriptDataPtr = functionStack[--functionStackPos];
Expand Down

0 comments on commit 09e5300

Please sign in to comment.