Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:32:08 PM (9 years ago)
Author:
landauf
Message:

made mapEntry const& wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/gametypes/LastTeamStanding.cc

    r10916 r10917  
    145145    void LastTeamStanding::spawnDeadPlayersIfRequested()
    146146    {
    147         for (auto& mapEntry : this->players_)
     147        for (const auto& mapEntry : this->players_)
    148148            if (mapEntry.second.state_ == PlayerState::Dead)
    149149            {
     
    229229        int party = -1;
    230230        //find a player who survived
    231         for (auto& mapEntry : this->playerLives_)
     231        for (const auto& mapEntry : this->playerLives_)
    232232        {
    233233          if (mapEntry.first->getClientID() == NETWORK_PEER_ID_UNKNOWN)
     
    255255    {
    256256        int min = lives;
    257         for (auto& mapEntry : this->playerLives_)
     257        for (const auto& mapEntry : this->playerLives_)
    258258        {
    259259            if (mapEntry.second <= 0)
Note: See TracChangeset for help on using the changeset viewer.