From e8b725c7bb41dbec02685243b1217c209cca08a6 Mon Sep 17 00:00:00 2001 From: ntr Date: Sat, 7 Dec 2019 10:17:44 +1000 Subject: [PATCH] len --- client/src/events.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/events.jsx b/client/src/events.jsx index 57491079..5230b256 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -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]; + const newRes = game.events[game.events.length - 1]; return eachSeries(newRes, (r, cb) => { const timeout = r.delay; setAnimations(r, store, account);