diff options
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 498722a4a4..7e8a54503e 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -2028,13 +2028,13 @@ mon_inv_type get_mon_equip_slot(const monsters* mon, const item_def &item) if (slot == NUM_MONSTER_SLOTS) return NUM_MONSTER_SLOTS; - if (mon->mslot_item(slot) == &item) + if (mon->mslot_item(slot) == &item) return slot; if (slot == MSLOT_WEAPON && mon->mslot_item(MSLOT_ALT_WEAPON) == &item) return MSLOT_ALT_WEAPON; - return NUM_MONSTER_SLOTS; + return NUM_MONSTER_SLOTS; } static std::string _drop_selitem_text( const std::vector<MenuEntry*> *s ) |