diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/battles')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index 20f6a25..255aa6c 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java @@ -102,7 +102,9 @@ public abstract class BattleCommon implements Battle public void load(Marshal.Mode mode, JsonValue value) { - if (mode == Marshal.Mode.PLAYERS) { + if (mode == Marshal.Mode.PLAYER) { + map.loadPlayerAP(value, 0, currentPlayer); + } else if (mode == Marshal.Mode.PLAYERS) { map.loadPlayers(value, players); this.currentPlayer = players[0]; } else { |