From 1052e0b0eb86f0c2858c07b1db83fc12c0fbffab Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 9 Mar 2009 10:11:14 +0000 Subject: When trying to animate single undead, only count instances of remains instead of all items, so that the "no remains/skeleton here" message is properly displayed when there are items on the floor but no remains. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9395 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spells3.cc') 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++; -- cgit v1.2.3-54-g00ecf