follow-up for #name permanent inventory update
Using extended #name for an object on the floor (for example) wasn't updating the permanent inventory to reflect the updated object type name if there was also one in inventory.
This commit is contained in:
@@ -671,7 +671,7 @@ docall(struct obj *obj)
|
||||
*uname_p = dupstr(buf);
|
||||
discover_object(obj->otyp, FALSE, TRUE, TRUE); /* possibly add to disco[] */
|
||||
}
|
||||
if (obj->where == OBJ_INVENT)
|
||||
if (obj->where == OBJ_INVENT || hero_has_one_of_these(obj->otyp))
|
||||
update_inventory();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user