path: root/src/squelch
diff options
authorBardur Arantsson <>2016-09-17 09:58:14 +0200
committerBardur Arantsson <>2016-09-17 09:58:14 +0200
commitcc857c940cfe1bfe8d78674dbce53e5b71acaf41 (patch)
treed1e62b5c66b9bd3d0f8cf1873b8dd858060816c5 /src/squelch
parent5a3f511fd036dd73152786e83f32c32f274f2398 (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/squelch')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/squelch/ b/src/squelch/
index c3b8c3f5..41806feb 100644
--- a/src/squelch/
+++ b/src/squelch/
@@ -891,7 +891,7 @@ void SymbolCondition::to_json(json_t *j) const
bool AbilityCondition::is_match(object_type *) const
- return has_ability(m_ability_idx);
+ return p_ptr->has_ability(m_ability_idx);
std::shared_ptr<Condition> AbilityCondition::from_json(json_t *j)