v0.3.5: fixed examining crash

This commit is contained in:
Evan Debenham 2016-04-10 02:07:36 -04:00
parent 4b3b35695f
commit 22b91231fc

View File

@ -775,8 +775,10 @@ public class GameScene extends PixelScene {
} else {
if (Dungeon.visible[cell]) {
Mob mob = (Mob) Actor.findChar(cell);
if (mob != null) objects.add(mob);
names.add(Messages.titleCase( mob.name ));
if (mob != null) {
objects.add(mob);
names.add(Messages.titleCase( mob.name ));
}
}
}