Skip to content

Commit

Permalink
Merge commit 'fe81b08810de8a353ed1d9a306be18a2d6a97880'
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Jun 28, 2017
2 parents 1c3308a + fe81b08 commit 3ece067
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ink-engine-runtime/StoryState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,13 @@ internal StoryState Copy()
}

copy.callStack = new CallStack (callStack);
copy._originalCallstack = new CallStack(_originalCallstack);

copy.variablesState = new VariablesState (copy.callStack, story.listDefinitions);
copy.variablesState.CopyFrom (variablesState);

copy.evaluationStack.AddRange (evaluationStack);
copy._originalEvaluationStackHeight = _originalEvaluationStackHeight;

if (divertedTargetObject != null)
copy.divertedTargetObject = divertedTargetObject;
Expand Down

0 comments on commit 3ece067

Please sign in to comment.