Skip to content

Commit

Permalink
Fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lohse committed Aug 19, 2016
1 parent a9a6465 commit 61c838e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ export class Story extends InkObject{
return;

var observers = this._variableObservers[variableName];
if (typeof newValueObj !== 'undefined') {
if (typeof observers !== 'undefined') {

if (!(newValueObj instanceof Value)) {
throw "Tried to get the value of a variable that isn't a standard type";
Expand Down

0 comments on commit 61c838e

Please sign in to comment.