Merge branch 'patch-npe-RoomUnit' into 'dev'

fixed nullpointer exception in RoomUnit.java

See merge request morningstar/Arcturus-Community!106
This commit is contained in:
Harmonic 2020-03-13 10:47:20 -04:00
commit c95cc3f730

View File

@ -761,6 +761,8 @@ public class RoomUnit {
}
public RoomTile getClosestAdjacentTile(short x, short y, boolean diagonal) {
if(room == null) return null;
RoomTile baseTile = room.getLayout().getTile(x, y);
if (baseTile == null) return null;