summaryrefslogtreecommitdiff
path: root/src/lua_bind.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_bind.cc')
-rw-r--r--src/lua_bind.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_bind.cc b/src/lua_bind.cc
index 151ba3b8..1612fb29 100644
--- a/src/lua_bind.cc
+++ b/src/lua_bind.cc
@@ -146,7 +146,7 @@ static s32b spell_chance_school(s32b s)
minfail = adj_mag_fail[stat_ind];
/* Must have Perfect Casting to get below 5% */
- if (!(has_ability(AB_PERFECT_CASTING)))
+ if (!(p_ptr->has_ability(AB_PERFECT_CASTING)))
{
if (minfail < 5) minfail = 5;
}