- Fixed Flying WU theme.

This commit is contained in:
Sloth
2012-07-20 10:31:07 +00:00
parent 4054c92d37
commit f31039aeee
2 changed files with 3 additions and 3 deletions

View File

@@ -118,13 +118,13 @@ public class GenerateThemeDeck extends GenerateColoredDeckBase {
s = g.cardnames.get(r.nextInt(cnSize)); s = g.cardnames.get(r.nextInt(cnSize));
int lc = 0; int lc = 0;
while ((cardCounts.get(s) >= g.maxCnt) || (lc > size)) { while ((cardCounts.get(s) >= g.maxCnt) || (lc > 999)) {
// looping // looping
// forever // forever
s = g.cardnames.get(r.nextInt(cnSize)); s = g.cardnames.get(r.nextInt(cnSize));
lc++; lc++;
} }
if (lc > size) { if (lc > 999) {
throw new RuntimeException("GenerateThemeDeck : getThemeDeck -- looped too much -- filename is " throw new RuntimeException("GenerateThemeDeck : getThemeDeck -- looped too much -- filename is "
+ tFileName); + tFileName);
} }