Skip to content

Commit

Permalink
Fix: lookup from inventory broke on nonstandard object material
Browse files Browse the repository at this point in the history
Use simple_typename instead.
  • Loading branch information
copperwater committed Dec 13, 2018
1 parent 7e75397 commit 9508d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invent.c
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,7 @@ ddoinv()

for (invobj = invent; invobj != NULL; invobj = invobj->nobj) {
if (invobj->invlet == invlet) {
strcpy(out_str, singular(invobj, xname));
strcpy(out_str, simple_typename(invobj->otyp));
break;
}
}
Expand Down

0 comments on commit 9508d55

Please # to comment.