Fix cube draft crash on saving

This commit is contained in:
tool4EvEr
2021-01-23 14:16:15 +01:00
parent fcbafef37f
commit 0eaa83c689

View File

@@ -362,7 +362,7 @@ public class BoosterDraft implements IBoosterDraft {
public Deck[] getDecks() { public Deck[] getDecks() {
Deck[] decks = new Deck[7]; Deck[] decks = new Deck[7];
for (int i = 1; i < N_PLAYERS; i++) { for (int i = 1; i < N_PLAYERS; i++) {
decks[i - 1] = ((LimitedPlayerAI) this.players.get(i)).buildDeck(IBoosterDraft.LAND_SET_CODE[0].getCode()); decks[i - 1] = ((LimitedPlayerAI) this.players.get(i)).buildDeck(IBoosterDraft.LAND_SET_CODE[0] != null ? IBoosterDraft.LAND_SET_CODE[0].getCode() : null);
} }
return decks; return decks;
} }