mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
ClassCastException fix on game close
This commit is contained in:
parent
d344d2315d
commit
0f15fd1186
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue