summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-07 11:31:12 +0300
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-07 18:42:53 +1000
commit2f21ea04c4aa2a807ea9f446b808f1826d6a66cf (patch)
treed53b03eb729afc56cf9e0c75f74bd570c144291c /crawl-ref/source/item_use.cc
parentf2a54d7ab10bd5bef162023c0659d6922b5bfa04 (diff)
downloadcrawl-ref-2f21ea04c4aa2a807ea9f446b808f1826d6a66cf.tar.gz
crawl-ref-2f21ea04c4aa2a807ea9f446b808f1826d6a66cf.zip
Replace player_weapon with player::weapon.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
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;