Skip to content

Commit

Permalink
Fix for attempting to copy a null callstack
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Jun 28, 2017
1 parent 3ece067 commit dcbd54f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ink-engine-runtime/StoryState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ internal StoryState Copy()
}

copy.callStack = new CallStack (callStack);
copy._originalCallstack = new CallStack(_originalCallstack);
if( _originalCallstack != null )
copy._originalCallstack = new CallStack(_originalCallstack);

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

0 comments on commit dcbd54f

Please sign in to comment.