Oops, a minor fix.
This commit is contained in:
parent
b6a56ff601
commit
25d5b4d8bc
1 changed files with 1 additions and 1 deletions
|
@ -1010,7 +1010,7 @@ bool unit::internal_matches_filter(const vconfig& cfg, const gamemap::location&
|
|||
if (unit_itor == units_->end())
|
||||
continue;
|
||||
if (unit_itor->second.matches_filter(*i, unit_itor->first, use_flat_tod)
|
||||
&& !(*i).has_attribute("is_enemy") || (utils::string_bool((*i)["is_enemy"])
|
||||
&& (!(*i).has_attribute("is_enemy") || utils::string_bool((*i)["is_enemy"])
|
||||
== (*gamestatus_->teams)[this->side()-1].is_enemy(unit_itor->second.side()))) {
|
||||
++match_count;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue