]> granicus.if.org Git - nethack/commitdiff
U510: yet another update_inventory call
authorcohrs <cohrs>
Thu, 19 Jun 2003 02:26:49 +0000 (02:26 +0000)
committercohrs <cohrs>
Thu, 19 Jun 2003 02:26:49 +0000 (02:26 +0000)
When armor becomes ungreased, update_inventory to reflect the change.

src/mhitu.c

index 4e22365d30249093ad6975320be6378268d391aa..8138ed5e3314ac0fd08d7e843c58777dd694c1f3 100644 (file)
@@ -783,6 +783,7 @@ struct attack *mattk;
            if (obj->greased && !rn2(2)) {
                pline_The("grease wears off.");
                obj->greased = 0;
+               update_inventory();
            }
            return TRUE;
        }