call update_inventory() after #name inventory obj

Resolves #1470
This commit is contained in:
nhmall
2025-12-09 13:47:11 -05:00
parent b1329137eb
commit 68aaa5a3ae

View File

@@ -671,6 +671,8 @@ docall(struct obj *obj)
*uname_p = dupstr(buf);
discover_object(obj->otyp, FALSE, TRUE, TRUE); /* possibly add to disco[] */
}
if (obj->where == OBJ_INVENT)
update_inventory();
}
staticfn void