Array out of bounds when adding basic lands to decks

This commit is contained in:
Maxmtg
2013-06-08 16:20:10 +00:00
parent 758b6294e5
commit 82defd76ff

View File

@@ -241,7 +241,7 @@ public final class CardDb implements ICardDatabase {
if ( null == cards ) return null;
if ( index < 0 ) { // this stands for 'random art'
PaperCard[] candidates = new PaperCard[8]; // 8 cards with same name per set is a maximum of what has been printed (lands of Zendikar)
PaperCard[] candidates = new PaperCard[9]; // 9 cards with same name per set is a maximum of what has been printed (Arnchenemy)
int cnt = 0;
for( PaperCard pc : cards ) {
if( pc.getEdition().equals(setName) )