diff options
author | John Fultz <jfultz@wolfram.com> | 2016-07-07 11:59:45 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2016-07-07 11:59:45 -0500 |
commit | 69eafa76901f66978765b75dc2720f72f6c7912c (patch) | |
tree | 17d73b438234c19fde85982ea57f8f967cce0c65 /game.cpp | |
parent | eb7f35652ca22bfd7d42ffd02678ce730597ae36 (diff) |
Fix compiler warning.
Diffstat (limited to 'game.cpp')
-rw-r--r-- | game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -186,11 +186,12 @@ void Game::commitMove(const Move &move) /////////// GamePosition::GamePosition(const PlayerList &players) - : m_players(players), m_currentPlayer(m_players.end()), m_playerOnTurn(m_players.end()), m_turnNumber(0), m_nestedness(0), m_scorelessTurnsInARow(0), m_gameOver(false), m_tilesInBag(m_bag.fullBagTileCount() - (QUACKLE_PARAMETERS->rackSize() * m_players.size())), m_tilesOnRack(QUACKLE_PARAMETERS->rackSize()) + : m_players(players), m_currentPlayer(m_players.end()), m_playerOnTurn(m_players.end()), m_turnNumber(0), m_nestedness(0), m_scorelessTurnsInARow(0), m_gameOver(false), m_tilesOnRack(QUACKLE_PARAMETERS->rackSize()) { setEmptyBoard(); resetMoveMade(); resetBag(); + m_tilesInBag = m_bag.fullBagTileCount() - (QUACKLE_PARAMETERS->rackSize() * m_players.size()); } GamePosition::GamePosition(const GamePosition &position) |