fix the first NPE related to playing Quest Mode from current incarnation of New GUI Home Screen

This commit is contained in:
slapshot5
2011-12-11 03:02:40 +00:00
parent 4232ebbd67
commit b50c32b403

View File

@@ -777,7 +777,9 @@ public class QuestMainPanel extends QuestAbstractPanel {
if (Constant.Runtime.OLDGUI[0]) { if (Constant.Runtime.OLDGUI[0]) {
AllZone.setDisplay(new GuiDisplay()); AllZone.setDisplay(new GuiDisplay());
} else { } else {
((GuiTopLevel) AllZone.getDisplay()).getController().getMatchController().initMatch(); GuiTopLevel g = (GuiTopLevel) AllZone.getDisplay();
g.getController().changeState(1);
g.getController().getMatchController().initMatch();
} }
Constant.Runtime.SMOOTH[0] = this.smoothLandCheckBox.isSelected(); Constant.Runtime.SMOOTH[0] = this.smoothLandCheckBox.isSelected();