From df5f9dc1d5a4af2444da63d25234b45de4b01a4d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 3 Sep 2016 17:30:32 -0400 Subject: [PATCH] v0.4.2: fixed a crash bug on level load --- .../shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 bf54fd715..5f00a22f4 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -751,7 +751,8 @@ public class GameScene extends PixelScene { public static void selectCell( CellSelector.Listener listener ) { cellSelector.listener = listener; - scene.prompt( listener.prompt() ); + if (scene != null) + scene.prompt( listener.prompt() ); } private static boolean cancelCellSelector() {