Skip to content

Commit

Permalink
Standard Unit Filter: Make "id=" match no units
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed May 22, 2017
1 parent 238d70e commit 89e6aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/units/filter.cpp
Expand Up @@ -260,7 +260,7 @@ bool basic_unit_filter_impl::internal_matches_filter(const unit & u, const map_l
return false;
}

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

0 comments on commit 89e6aee

Please sign in to comment.