Fix segfault when looking at detected monster hiding under unknown armor
commit5da34b7db667d5de74e9f2881a7213584654593b
authorPasi Kallinen <paxed@alt.org>
Fri, 2 Dec 2016 20:03:10 +0000 (2 22:03 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 2 Dec 2016 20:12:44 +0000 (2 22:12 +0200)
tree074a596d81e757df73cb38efae6a722b8c5836bc
parent52457be911c2214425e163a1feef46444ab7f1f0
Fix segfault when looking at detected monster hiding under unknown armor

This segfault happened when a detected monster such as a garter snake was
hiding under an unknown/unseen armor of a type that has no description
field (eg. a leather armor), and you farlooked at the monster.

At the same time, simplifies the code a tiny bit.
src/objnam.c