* Fixed a game locking problem with the day/night button of transformable cards (fixes #2503).

This commit is contained in:
LevelX2 2016-10-26 22:53:39 +02:00
parent 8b288c353f
commit 6b58c18520

View file

@ -564,8 +564,10 @@ public abstract class CardPanel extends MagePermanent implements MouseListener,
} else {
transformIcon = ImageManagerImpl.getInstance().getDayImage();
}
dayNightButton.setVisible(!isPermanent);
dayNightButton.setIcon(new ImageIcon(transformIcon));
if (dayNightButton != null) {
dayNightButton.setVisible(!isPermanent);
dayNightButton.setIcon(new ImageIcon(transformIcon));
}
}
}