summaryrefslogtreecommitdiff
path: root/src/cmd4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd4.cc')
-rw-r--r--src/cmd4.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd4.cc b/src/cmd4.cc
index 01452090..724d5a1f 100644
--- a/src/cmd4.cc
+++ b/src/cmd4.cc
@@ -3457,7 +3457,7 @@ static void do_cmd_knowledge_pets(void)
// Calculate upkeep
int show_upkeep = 0;
- int upkeep_divider = has_ability(AB_PERFECT_CASTING) ? 15 : 20;
+ int upkeep_divider = p_ptr->has_ability(AB_PERFECT_CASTING) ? 15 : 20;
if (t_friends > 1 + (p_ptr->lev / (upkeep_divider)))
{