Eliminate a string variable through inlining.
This commit is contained in:
parent
2a5b2a3669
commit
b37bff4925
1 changed files with 1 additions and 2 deletions
|
@ -998,8 +998,7 @@ void encounter_recruitable_units(std::vector<team>& teams){
|
|||
void encounter_start_units(unit_map& units){
|
||||
for (unit_map::const_iterator help_unit_it = units.begin();
|
||||
help_unit_it != units.end(); ++help_unit_it) {
|
||||
const std::string name = help_unit_it->type_id();
|
||||
encountered_units_set.insert(name);
|
||||
encountered_units_set.insert(help_unit_it->type_id());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue