diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | cc857c940cfe1bfe8d78674dbce53e5b71acaf41 (patch) | |
tree | d1e62b5c66b9bd3d0f8cf1873b8dd858060816c5 /src/xtra1.cc | |
parent | 5a3f511fd036dd73152786e83f32c32f274f2398 (diff) |
Move ability_type::acquired to p_ptr struct
This is justified by the fact that the 'acquired' flag is actually a
player-centered bit of information and must be
loaded/saved. Everything else in ability_type is defined by the *.txt
files.
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r-- | src/xtra1.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc index 16edf4bf..280cc61a 100644 --- a/src/xtra1.cc +++ b/src/xtra1.cc @@ -2246,8 +2246,8 @@ void calc_body_bonus() static int get_extra_blows_ability() { /* Count bonus abilities */ int num = 0; - if (has_ability(AB_MAX_BLOW1)) num++; - if (has_ability(AB_MAX_BLOW2)) num++; + if (p_ptr->has_ability(AB_MAX_BLOW1)) num++; + if (p_ptr->has_ability(AB_MAX_BLOW2)) num++; return num; } |