summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 9b98b02c18..9a84c93cf9 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1825,8 +1825,8 @@ static bool _shadow_hit_victim(bolt& beam, actor* victim, int dmg, int corpse)
}
int midx = NON_MONSTER;
- if (!animate_remains(victim->pos(), CORPSE_BODY, beh, hitting,
- GOD_NO_GOD, true, true, &midx))
+ if (animate_remains(victim->pos(), CORPSE_BODY, beh, hitting,
+ GOD_NO_GOD, true, true, &midx) <= 0)
{
return (false);
}