Skip to content

Commit

Permalink
remove support for name= in standart unit filters
Browse files Browse the repository at this point in the history
This causes OOS because the name differs in different languages
Also this wasn't documented in the wiki
  • Loading branch information
gfgtdf committed Feb 23, 2016
1 parent 7f02961 commit a5d03e9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/unit_filter.cpp
Expand Up @@ -231,10 +231,6 @@ bool basic_unit_filter_impl::matches(const unit & u, const map_location& loc, co

bool basic_unit_filter_impl::internal_matches_filter(const unit & u, const map_location& loc) const
{
if (!vcfg["name"].blank() && vcfg["name"].str() != u.name()) {
return false;
}

if (!vcfg["id"].empty()) {
std::vector<std::string> id_list = utils::split(vcfg["id"]);
if (std::find(id_list.begin(), id_list.end(), u.id()) == id_list.end()) {
Expand Down

0 comments on commit a5d03e9

Please sign in to comment.