- Fixed resetCardColor crashing on face down cards.

This commit is contained in:
Sloth
2013-02-28 07:55:46 +00:00
parent efd91976f0
commit 55f2d9921f
2 changed files with 4 additions and 1 deletions

View File

@@ -136,7 +136,9 @@ public class CardCharacteristics {
* Resets the card color.
*/
public final void resetCardColor() {
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
if (!this.cardColor.isEmpty()) {
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
}
}
/**