push new empty events vec on resolve phase start

This commit is contained in:
Mashy
2019-12-05 23:52:50 +10:00
parent 70711fd37b
commit b62dc53e08
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function registerEvents(store) {
store.dispatch(actions.setAnimating(true));
store.dispatch(actions.setGameSkillInfo(null));
// stop fetching the game state til animations are done
const newRes = game.events[currentGame.events.length - 1];
const newRes = game.events[currentGame.events.length];
return eachSeries(newRes, (r, cb) => {
const timeout = r.delay;
const anims = animations.getObjects(r, game, account);