From df71bac470e9c87dcc83393534dd09b1d72a8efb Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Mon, 8 Apr 2019 14:35:40 -0700 Subject: [PATCH] Fixes crash for Monster entities without a backing ds1 object --- core/src/com/riiablo/entity/Monster.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/riiablo/entity/Monster.java b/core/src/com/riiablo/entity/Monster.java index c74155e6..b3ec7a0f 100644 --- a/core/src/com/riiablo/entity/Monster.java +++ b/core/src/com/riiablo/entity/Monster.java @@ -150,6 +150,7 @@ public class Monster extends Entity { @Override public void drawDebugPath(PaletteIndexedBatch batch, ShapeRenderer shapes) { + if (object == null) return; DS1.Path path = object.path; if (path == null) return; DS1.Path.Point point;