v2.2.0: added a safety check to CellSelector
This commit is contained in:
+1
-1
@@ -341,7 +341,7 @@ public class CellSelector extends ScrollArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (Dungeon.hero.resting){
|
} else if (Dungeon.hero != null && Dungeon.hero.resting){
|
||||||
Dungeon.hero.resting = false;
|
Dungeon.hero.resting = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user