Fix regular potion short names

master
kts of kettek (nyaa) 2019-08-13 17:39:57 -07:00
parent 89b5ea6db0
commit a0bb16ab50
1 changed files with 2 additions and 0 deletions

View File

@ -580,6 +580,8 @@ void query_short_name(const object *op, char *buf, size_t size) {
case WAND:
case ROD:
case POTION:
if (op->type == POTION && op->subtype != POT_THROW)
break;
if (QUERY_FLAG(op, FLAG_IDENTIFIED)||QUERY_FLAG(op, FLAG_BEEN_APPLIED)) {
if (!op->title) {
safe_strcat(buf, " of ", &len, size);