v0.6.1a: added a safety check to gamescene

This commit is contained in:
Evan Debenham 2017-08-17 17:46:16 -04:00
parent 7618025509
commit bd6f379e28

View File

@ -885,8 +885,8 @@ public class GameScene extends PixelScene {
mode == Mode.WAND ?
WndBag.getBag( WandHolster.class, listener, mode, title ) :
WndBag.lastBag( listener, mode, title );
scene.addToFront( wnd );
if (scene != null) scene.addToFront( wnd );
return wnd;
}