From 2f21ea04c4aa2a807ea9f446b808f1826d6a66cf Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 11:31:12 +0300 Subject: Replace player_weapon with player::weapon. Signed-off-by: Jude Brown --- crawl-ref/source/spl-cast.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-cast.cc') 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)) -- cgit v1.2.3-54-g00ecf