]> granicus.if.org Git - nethack/commitdiff
gold in inventory bit (trunk only)
authornethack.rankin <nethack.rankin>
Sun, 7 Jan 2007 06:33:39 +0000 (06:33 +0000)
committernethack.rankin <nethack.rankin>
Sun, 7 Jan 2007 06:33:39 +0000 (06:33 +0000)
     Update some disabled code in case it ever gets used.

src/invent.c

index 9218b9495b5de893a2b0c469f6581fd538109f75..af2bb101cfe9c28d2ddf48b77f5e05b57ff8e8d9 100644 (file)
@@ -725,8 +725,7 @@ remove_gold_from_invent()
            dealloc_obj(u_gold);
 #if 0
        } else if ((u_gold = carrying(GOLD_PIECE)) != 0) {
-           u.ugold += u_gold->quan;    /* freeinv will subtract it back out */
-           freeinv(u_gold);
+           extract_nobj(u_gold, &invent);
            dealloc_obj(u_gold);
 #endif
        }