PicCount was not being updated when filtered by set.

This commit is contained in:
jendave
2011-08-06 16:02:18 +00:00
parent 6da66f264f
commit c5850317f6

View File

@@ -337,6 +337,12 @@ public class Gui_DeckEditor extends JFrame implements CardContainer, DeckDisplay
if (SetInfoUtil.getSetInfo_Code(c.getSets(), SC) != null) { if (SetInfoUtil.getSetInfo_Code(c.getSets(), SC) != null) {
c.setCurSetCode(SC); c.setCurSetCode(SC);
Random r = new Random();
int n = SetInfoUtil.getSetInfo_Code(c.getSets(), SC).PicCount;
if (n > 1)
c.setRandomPicture(r.nextInt(n-1) + 1);
result = true; result = true;
} }
filterOut = !(result); filterOut = !(result);