diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index 9625d02f8..1f2147983 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -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; }