fix for crash when was querying Stack zone from global getCardsIn(List<Zone>)

This commit is contained in:
Maxmtg
2011-09-19 19:17:41 +00:00
parent ab038841b3
commit 6595515733

View File

@@ -79,6 +79,11 @@ public final class AllZoneUtil {
public static CardList getCardsIn(final List<Constant.Zone> zones) {
CardList cards = new CardList();
for (Zone z: zones) {
if ( z == Zone.Stack) {
cards.addAll(AllZone.getStackZone().getCards());
continue;
}
for (Player p : Singletons.getModel().getGameState().getPlayers()) {
cards.addAll(p.getZone(z).getCards());
}