mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Use BOOST_FOREACH instead of an index-based loop
This commit is contained in:
parent
e34cc25fe1
commit
8b3d6b9872
1 changed files with 3 additions and 3 deletions
|
@ -126,11 +126,11 @@ void FreeGame::start()
|
|||
ASSERT(getNPlayers(), "Cannot start a game without any player");
|
||||
|
||||
// Set the initial racks of the players
|
||||
for (unsigned int i = 0; i < getNPlayers(); i++)
|
||||
BOOST_FOREACH(Player *player, m_players)
|
||||
{
|
||||
const PlayedRack &newRack =
|
||||
helperSetRackRandom(getPlayer(i).getCurrentRack(), false, RACK_NEW);
|
||||
Command *pCmd = new PlayerRackCmd(*m_players[i], newRack);
|
||||
helperSetRackRandom(player->getCurrentRack(), false, RACK_NEW);
|
||||
Command *pCmd = new PlayerRackCmd(*player, newRack);
|
||||
accessNavigation().addAndExecute(pCmd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue