summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 8607e4fa55..9559ba9da3 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -2949,9 +2949,15 @@ static void _rot_inventory_food(long time_delta)
continue;
}
- // Carried skeletons are not destroyed.
if (you.inv[i].sub_type == CORPSE_SKELETON)
+ {
+ if (you.equip[EQ_WEAPON] == i)
+ unwield_item();
+
+ destroy_item(you.inv[i]);
+ burden_changed_by_rot = true;
continue;
+ }
if (!mons_skeleton(you.inv[i].plus))
{