Fixes crash for Monster entities without a backing ds1 object

This commit is contained in:
Collin Smith 2019-04-08 14:35:40 -07:00
parent 1d0833ed9c
commit df71bac470

View File

@ -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;