Skip to content

Commit

Permalink
Oops, last change un-did a previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Mar 9, 2017
1 parent 6770c74 commit 2d93b9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ink-engine-runtime/StoryState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,10 @@ internal void StartExternalFunctionEvaluation (Container funcContainer, params o
callStack = new CallStack (funcContainer);
callStack.currentElement.type = PushPopType.Function;

// Change the callstack the variableState is looking at to be
// this temporary function evaluation one. We'll restore it afterwards
variablesState.callStack = callStack;

// By setting ourselves in external function evaluation mode,
// we're saying it's okay to end the flow without a Done or End,
// but with a ~ return instead.
Expand Down

0 comments on commit 2d93b9c

Please sign in to comment.