summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 2bec5b9aff..554879c05d 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -85,6 +85,12 @@ REVISION("$Rev$");
static void _create_monster_hide(const item_def corpse)
{
+ // receive_corpses() in spells3.cc creates corpses that
+ // are easily scummed for hides. We prevent this by setting
+ // "DoNotDropHide" as an item property of corpses it creates.
+ if (corpse.props.exists("DoNotDropHide"))
+ return;
+
int mons_class = corpse.plus;
int o = get_item_slot();