From a9835fd23cb71ba3813a6116e613c7e9206b606f Mon Sep 17 00:00:00 2001 From: cohrs Date: Sat, 9 Mar 2002 06:55:52 +0000 Subject: [PATCH] more update_inventory calls in passive_obj and erode_armor --- src/do_wear.c | 1 + src/uhitm.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/do_wear.c b/src/do_wear.c index ba6152d3d..d361696b1 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -1636,6 +1636,7 @@ boolean acid_dmg; if (otmph && (otmph != uarmf)) { erode_obj(otmph, acid_dmg, FALSE); + if (carried(otmph)) update_inventory(); } } diff --git a/src/uhitm.c b/src/uhitm.c index 4cac38282..7700ea27e 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -2184,6 +2184,8 @@ struct attack *mattk; /* null means we find one internally */ default: break; } + + if (carried(obj)) update_inventory(); } /* Note: caller must ascertain mtmp is mimicking... */