summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index ca3c85ca32..552fa11bd4 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -664,9 +664,7 @@ static void _equip_undead(const coord_def &a, int corps, int monster,
{
item_def item(mitm[objl]);
- if (item.base_type == OBJ_CORPSES)
- first_obj = NON_ITEM;
- else if (first_obj == NON_ITEM)
+ if (item.base_type != OBJ_CORPSES && first_obj == NON_ITEM)
first_obj = objl;
objl = item.link;