v0.4.2: fixed a crash bug on level load

This commit is contained in:
Evan Debenham 2016-09-03 17:30:32 -04:00
parent 044c93d3aa
commit df5f9dc1d5

View File

@ -751,7 +751,8 @@ public class GameScene extends PixelScene {
public static void selectCell( CellSelector.Listener listener ) { public static void selectCell( CellSelector.Listener listener ) {
cellSelector.listener = listener; cellSelector.listener = listener;
scene.prompt( listener.prompt() ); if (scene != null)
scene.prompt( listener.prompt() );
} }
private static boolean cancelCellSelector() { private static boolean cancelCellSelector() {