ClassCastException fix on game close

This commit is contained in:
magenoxx 2012-06-27 17:33:47 +04:00
parent d344d2315d
commit 0f15fd1186

View file

@ -503,8 +503,10 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
if (frame.isVisible()) {
int z = desktopPane.getComponentZOrder(frame);
if (z < best) {
best = z;
topmost = (MagePane) frame;
if (frame instanceof MagePane) {
best = z;
topmost = (MagePane) frame;
}
}
}
}