Unquiver gold before making it vanish

This fixes a complaint for "deleting worn obj":  If reading a cursed
spellbook took your money, and the gold was quivered.
This commit is contained in:
Pasi Kallinen
2015-04-28 22:14:20 +03:00
parent f83523eeb4
commit d768887385

View File

@@ -15,6 +15,7 @@ take_gold()
nobj = otmp->nobj;
if (otmp->oclass == COIN_CLASS) {
lost_money = 1;
remove_worn_item(otmp, FALSE);
delobj(otmp);
}
}