summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.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/spl-cast.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/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 262026415e..b67846757c 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -70,7 +70,7 @@ static bool _surge_identify_boosters(spell_type spell)
// Must not be wielding an unIDed staff.
// Note that robes of the Archmagi identify on wearing,
// so that's less of an issue.
- const item_def* wpn = player_weapon();
+ const item_def* wpn = you.weapon();
if (wpn == NULL
|| wpn->base_type != OBJ_STAVES
|| item_ident(*wpn, ISFLAG_KNOW_PROPERTIES))