- Timestamp:
- Dec 2, 2015, 11:32:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/gametypes/LastTeamStanding.cc
r10916 r10917 145 145 void LastTeamStanding::spawnDeadPlayersIfRequested() 146 146 { 147 for ( auto& mapEntry : this->players_)147 for (const auto& mapEntry : this->players_) 148 148 if (mapEntry.second.state_ == PlayerState::Dead) 149 149 { … … 229 229 int party = -1; 230 230 //find a player who survived 231 for ( auto& mapEntry : this->playerLives_)231 for (const auto& mapEntry : this->playerLives_) 232 232 { 233 233 if (mapEntry.first->getClientID() == NETWORK_PEER_ID_UNKNOWN) … … 255 255 { 256 256 int min = lives; 257 for ( auto& mapEntry : this->playerLives_)257 for (const auto& mapEntry : this->playerLives_) 258 258 { 259 259 if (mapEntry.second <= 0)
Note: See TracChangeset
for help on using the changeset viewer.