Fixed that wathcing games did not work correctly.

This commit is contained in:
LevelX2 2016-02-28 10:52:55 +01:00
parent 996f07a4ff
commit 6d4a3bac28
3 changed files with 7 additions and 7 deletions

View file

@ -226,7 +226,7 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
}
public void sortLayout() {
if (battlefield == null) {
if (battlefield == null || this.getWidth() < 1) { // Can't do layout when panel is not sized yet
return;
}