summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 04:55:39 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 04:55:39 +0000
commit8f82bd1f8aca60f4d15e3966933dc10cbe019574 (patch)
tree1f4edc43d73d8fe3efba7120523a7e68bb486e62 /crawl-ref/source/abyss.cc
parent59a3c76e56576037b1c30c99c14cebdd03804ef6 (diff)
downloadcrawl-ref-8f82bd1f8aca60f4d15e3966933dc10cbe019574.tar.gz
crawl-ref-8f82bd1f8aca60f4d15e3966933dc10cbe019574.zip
Fix bug #2517795: debug_item_scan() errors when the Abyss shifts.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8571 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index b729491396..b3081d5379 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -391,6 +391,7 @@ static void _abyss_lose_monster(monsters &mons)
if (mons.needs_transit())
mons.set_transit( level_id(LEVEL_ABYSS) );
+ mons.destroy_inventory();
mons.reset();
}