Fix a writing in matches_ability_filter function
error don't affect functionality, but it is for writing quality.
This commit is contained in:
parent
b543cf4e7c
commit
d6cad6f4e6
1 changed files with 1 additions and 2 deletions
|
@ -1491,8 +1491,7 @@ static bool type_value_if_present(const config& filter, const config& cfg)
|
|||
static bool matches_ability_filter(const config & cfg, const std::string& tag_name, const config & filter)
|
||||
{
|
||||
if(!filter["affect_adjacent"].empty()){
|
||||
auto cfg_adjacent = cfg.optional_child("affect_adjacent");
|
||||
bool adjacent = cfg_adjacent ? true : false;;
|
||||
bool adjacent = cfg.has_child("affect_adjacent");
|
||||
if(filter["affect_adjacent"].to_bool() != adjacent){
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue