Skip to content

Commit

Permalink
Reset the ShuffleOptions variable when entering a new node
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Feb 20, 2016
1 parent e15fa63 commit 154b1d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions YarnSpinner/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public void SetNode(string nodeName) {

dialogue.LogDebugMessage ("Running node " + nodeName);

// Clear the special variables
dialogue.continuity.SetNumber(SpecialVariables.ShuffleOptions, 0.0f);

currentNodeInstructions = program.nodes [nodeName].instructions;
state.currentNode = nodeName;
state.programCounter = 0;
Expand Down

0 comments on commit 154b1d3

Please # to comment.