Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/inkle/ink
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Oct 28, 2016
2 parents e2f3d15 + ecc1183 commit 8d2874b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ink-engine-runtime/StoryState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,6 @@ internal List<Runtime.Object> PopEvaluationStack(int numberOfObjects)

public void ForceEnd()
{
currentContentObject = null;

while (callStack.canPopThread)
callStack.PopThread ();
Expand All @@ -707,6 +706,7 @@ public void ForceEnd()

currentChoices.Clear();

currentContentObject = null;
previousContentObject = null;

didSafeExit = true;
Expand Down
4 changes: 3 additions & 1 deletion inklecate/InkParser/InkParser_Choices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ protected Choice Choice()
var tags = Parse (Tags);
if (tags != null) {
if (hasWeaveStyleInlineBrackets) {
innerContent.AddContent (tags);
if (!innerContent)
innerContent = new ContentList();
innerContent.AddContent(tags);
} else {
startContent.AddContent (tags);
}
Expand Down
2 changes: 1 addition & 1 deletion inklecate/ParsedHierarchy/DivertTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override void ResolveReferences (Story context)
if (!(binaryExprParent.leftExpression is DivertTarget || binaryExprParent.leftExpression is VariableReference)) {
badUsage = true;
}
if (!(binaryExprParent.leftExpression is DivertTarget || binaryExprParent.leftExpression is VariableReference)) {
if (!(binaryExprParent.rightExpression is DivertTarget || binaryExprParent.rightExpression is VariableReference)) {
badUsage = true;
}
}
Expand Down

0 comments on commit 8d2874b

Please sign in to comment.