tiny optimization

This commit is contained in:
Peter F. Patel-Schneider
2019-02-19 10:51:41 -05:00
parent 6fcb996938
commit 0d79a84b9f

View File

@@ -123,9 +123,9 @@ public class FloatingZone extends FloatingCardArea {
};
protected Iterable<CardView> getCards() {
Iterable<CardView> zoneCards = player.getCards(zone);
Iterable<CardView> zoneCards = player.getCards(zone);
if ( zoneCards != null ) {
cardList = new FCollection<CardView>(player.getCards(zone));
cardList = new FCollection<CardView>(zoneCards);
if ( sortedByName ) {
Collections.sort(cardList, comp);
}