mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 17:17:41 +00:00
Avoid an unnecessary copy of a string.
This commit is contained in:
parent
b488db4bc3
commit
35961bd4b6
@ -135,7 +135,7 @@ map_location unit_creator::find_location(const config &cfg, const unit* pass_che
|
||||
placements.push_back("map");
|
||||
placements.push_back("recall");
|
||||
|
||||
BOOST_FOREACH(std::string place, placements) {
|
||||
BOOST_FOREACH(const std::string& place, placements) {
|
||||
map_location loc;
|
||||
bool pass((place == "leader_passable") || (place == "map_passable"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user