v0.6.1a: added a safety check to gamescene
This commit is contained in:
parent
7618025509
commit
bd6f379e28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user