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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 8b9b0ec052..7868fc939f 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -429,7 +429,7 @@ void warn_shield_penalties()
return;
// Warnings are limited to rods, bows, and quarterstaves at the moment.
- const item_def *weapon = player_weapon();
+ const item_def *weapon = you.weapon();
if (!weapon)
return;