v2.2.0: added a safety check to CellSelector

This commit is contained in:
Evan Debenham
2023-10-02 12:06:52 -04:00
parent 5b196428be
commit e3022a6cd6
@@ -341,7 +341,7 @@ public class CellSelector extends ScrollArea {
}
return true;
} else if (Dungeon.hero.resting){
} else if (Dungeon.hero != null && Dungeon.hero.resting){
Dungeon.hero.resting = false;
return true;
}