From 6f76b90dc04238de883c387195d5871350baf3e4 Mon Sep 17 00:00:00 2001 From: Josh A Date: Mon, 12 Nov 2018 01:05:46 +0100 Subject: [PATCH] Fix broken power ups list loading --- lib/persistant_game_state.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/persistant_game_state.dart b/lib/persistant_game_state.dart index 28dea96..49f7b7b 100644 --- a/lib/persistant_game_state.dart +++ b/lib/persistant_game_state.dart @@ -11,7 +11,7 @@ class PersistantGameState { Map data = decoder.convert(json); coins = data['coins']; - _powerupLevels = data['powerUpLevels']; + _powerupLevels = data['powerUpLevels'].cast(); _currentStartingLevel = data['currentStartingLevel']; maxStartingLevel = data['maxStartingLevel']; laserLevel = data['laserLevel'];