Skip to content

Commit

Permalink
Merge pull request #35 from joningold/patch-5
Browse files Browse the repository at this point in the history
Fixes to uncapitalised Push methods
  • Loading branch information
y-lohse committed Oct 14, 2016
2 parents 07c884e + 6bc11be commit efe6d48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ export class Story extends InkObject{
EvaluateExpression(exprContainer){
var startCallStackHeight = this.state.callStack.elements.length;

this.state.callStack.push(PushPopType.Tunnel);
this.state.callStack.Push(PushPopType.Tunnel);

this._temporaryEvaluationContainer = exprContainer;

Expand Down Expand Up @@ -982,7 +982,7 @@ export class Story extends InkObject{
if (!(fallbackFunctionContainer instanceof Container)) console.warn("Trying to call EXTERNAL function '" + funcName + "' which has not been bound, and fallback ink function could not be found.");

// Divert direct into fallback function and we're done
this.state.callStack.push(PushPopType.Function);
this.state.callStack.Push(PushPopType.Function);
this.state.divertedTargetObject = fallbackFunctionContainer;
return;

Expand Down Expand Up @@ -1396,4 +1396,4 @@ export class Story extends InkObject{
// In a broken state don't need to know about any other errors.
this.state.ForceEnd();
}
}
}

0 comments on commit efe6d48

Please sign in to comment.