- Bugfix for quest (icon related).

This commit is contained in:
jendave
2011-08-06 04:37:11 +00:00
parent 87725a4f0c
commit aa6d0ba364

View File

@@ -500,11 +500,13 @@ public class GuiDisplay3 extends JFrame implements CardContainer, Display, NewCo
if (AllZone.QuestData != null) { if (AllZone.QuestData != null) {
File base = ForgeProps.getFile(IMAGE_ICON); File base = ForgeProps.getFile(IMAGE_ICON);
File file = new File(base, Constant.Quest.oppIconName[0]); String iconName = "";
ImageIcon icon = new ImageIcon(file.toString()); if (Constant.Quest.oppIconName[0] != null) {
iconName = Constant.Quest.oppIconName[0];
oppIconLabel.setIcon(icon); File file = new File(base, iconName);
ImageIcon icon = new ImageIcon(file.toString());
oppIconLabel.setIcon(icon);
}
} }
oppPCLabel.setText("Poison Counters: " + AllZone.Computer_PoisonCounter.getPoisonCounters()); oppPCLabel.setText("Poison Counters: " + AllZone.Computer_PoisonCounter.getPoisonCounters());