upgrade card not found for remove from warning to runtime exception

master
melvinzhang 2015-08-14 17:22:50 +08:00
parent 264d1abee6
commit 8da7efe02c
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class MagicCardList extends ArrayList<MagicCard> implements MagicCopyable
if (index >= 0) {
remove(index);
} else {
System.err.println("WARNING. Card " + card.getName() + " not found.");
throw new RuntimeException("Card " + card.getName() + " not found.");
}
return index;
}