summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 4cefe30857..5285da7795 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -577,11 +577,11 @@ bool monsters::can_wield(const item_def& item, bool ignore_curse,
if (!ignore_curse)
{
int num_cursed = 0;
- if (weap1 && item_cursed(*weap1))
+ if (weap1 && weap1->cursed())
num_cursed++;
- if (weap2 && item_cursed(*weap2))
+ if (weap2 && weap2->cursed())
num_cursed++;
- if (_shield && item_cursed(*_shield))
+ if (_shield && _shield->cursed())
num_cursed++;
if (two_handed && num_cursed > 0 || num_cursed >= avail_slots)