Get rid of an unnecessary CardDb of allCards which was taking 256kb of memory.

This commit is contained in:
Myrd
2016-12-25 06:22:26 +00:00
parent 328922029a
commit 3faf1946fa
2 changed files with 11 additions and 17 deletions

View File

@@ -161,7 +161,10 @@ public class GuiChoose {
return;
} else if (sel instanceof ICardFace) {
final ICardFace face = (ICardFace)sel;
final PaperCard paper = FModel.getMagicDb().getAllCards().getUniqueByName(face.getName());
PaperCard paper = FModel.getMagicDb().getCommonCards().getUniqueByName(face.getName());
if (paper == null) {
paper = FModel.getMagicDb().getVariantCards().getUniqueByName(face.getName());
}
matchUI.setCard(paper);
return;
}