Skip to content

Commit

Permalink
hotfix(runtime): bug in Store._sum
Browse files Browse the repository at this point in the history
  • Loading branch information
artch committed Oct 15, 2019
1 parent 52df2e5 commit 9f00e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game/store.js
Expand Up @@ -40,7 +40,9 @@ exports.make = function(_runtimeData, _intents, _register, _globals) {
return null;
}
if(this._sum === undefined) {
this._sum = _.sum(object.store);
Object.defineProperty(this, '_sum', {
value: _.sum(object.store)
});
}
return this._sum;
}
Expand Down

0 comments on commit 9f00e3b

Please sign in to comment.