This commit is contained in:
ntr 2019-12-07 10:17:44 +10:00
parent 22ac2b502e
commit e8b725c7bb

View File

@ -86,7 +86,7 @@ function registerEvents(store) {
store.dispatch(actions.setAnimating(true)); store.dispatch(actions.setAnimating(true));
store.dispatch(actions.setGameSkillInfo(null)); store.dispatch(actions.setGameSkillInfo(null));
// stop fetching the game state til animations are done // stop fetching the game state til animations are done
const newRes = game.events[currentGame.events.length]; const newRes = game.events[game.events.length - 1];
return eachSeries(newRes, (r, cb) => { return eachSeries(newRes, (r, cb) => {
const timeout = r.delay; const timeout = r.delay;
setAnimations(r, store, account); setAnimations(r, store, account);