Avoid an unnecessary copy of a string.

This commit is contained in:
Mark de Wever 2014-02-08 21:55:41 +01:00
parent b488db4bc3
commit 35961bd4b6

View File

@ -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"));