Minor fix to SUF type_tree

This commit is contained in:
Celtic Minstrel 2016-09-01 17:31:43 -04:00
parent 6bd2e67f26
commit e0834cf58b

View file

@ -330,6 +330,7 @@ bool basic_unit_filter_impl::internal_matches_filter(const unit & u, const map_l
if(const unit_type* ut = unit_types.find(type)) {
const auto& tree = ut->advancement_tree();
types.insert(tree.begin(), tree.end());
types.insert(type);
}
}
if(types.find(u.type_id()) == types.end()) {