Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to uncapitalised Push methods #35

Merged
merged 1 commit into from
Oct 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}
}
}