From 1c20fe62233f05d6a970f8ce8c175926dcfbd93b Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sun, 7 Jan 2007 06:33:39 +0000 Subject: [PATCH] gold in inventory bit (trunk only) Update some disabled code in case it ever gets used. --- src/invent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/invent.c b/src/invent.c index 9218b9495..af2bb101c 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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 }