more update_inventory calls

in passive_obj and erode_armor
This commit is contained in:
cohrs
2002-03-09 06:55:52 +00:00
parent a35ca5e744
commit a9835fd23c
2 changed files with 3 additions and 0 deletions

View File

@@ -1636,6 +1636,7 @@ boolean acid_dmg;
if (otmph && (otmph != uarmf)) {
erode_obj(otmph, acid_dmg, FALSE);
if (carried(otmph)) update_inventory();
}
}

View File

@@ -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... */