summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/spells3.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index dd8736e367..304a138af3 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -883,7 +883,9 @@ int animate_remains(const coord_def &a, corpse_type class_allowed,
// Search all the items on the ground for a corpse.
for (stack_iterator si(a); si; ++si)
{
- if (class_allowed == CORPSE_BODY || si->sub_type == CORPSE_SKELETON)
+ if (si->base_type == OBJ_CORPSES
+ && (class_allowed == CORPSE_BODY
+ || si->sub_type == CORPSE_SKELETON))
{
number_found++;