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/modules/mini4dgame/Mini4Dgame.cc

    r10916 r10917  
    155155    {
    156156        // first spawn human players to assign always the left bat to the player in singleplayer
    157         for (auto& mapEntry : this->players_)
     157        for (const auto& mapEntry : this->players_)
    158158            if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_))
    159159                this->spawnPlayer(mapEntry.first);
    160160        // now spawn bots
    161         for (auto& mapEntry : this->players_)
     161        for (const auto& mapEntry : this->players_)
    162162            if (!mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_))
    163163                this->spawnPlayer(mapEntry.first);
Note: See TracChangeset for help on using the changeset viewer.