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

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