v1.1.0: fixed a crash caused by changes to inferno

This commit is contained in:
Evan Debenham 2021-12-01 16:48:54 -05:00
parent cf5f8aebfd
commit 34e28440f0

View File

@ -70,7 +70,7 @@ public class Inferno extends Blob {
|| cur[cell-Dungeon.level.width()] > 0
|| cur[cell+Dungeon.level.width()] > 0)) {
if (fire == null || fire.cur[cell] == 0) {
if (fire == null || fire.cur == null || fire.cur[cell] == 0) {
GameScene.add(Fire.seed(cell, 4, Fire.class));
}