summaryrefslogtreecommitdiff
path: root/game.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2016-07-07 11:59:45 -0500
committerJohn Fultz <jfultz@wolfram.com>2016-07-07 11:59:45 -0500
commit69eafa76901f66978765b75dc2720f72f6c7912c (patch)
tree17d73b438234c19fde85982ea57f8f967cce0c65 /game.cpp
parenteb7f35652ca22bfd7d42ffd02678ce730597ae36 (diff)
Fix compiler warning.
Diffstat (limited to 'game.cpp')
-rw-r--r--game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/game.cpp b/game.cpp
index 041f756..fca5942 100644
--- a/game.cpp
+++ b/game.cpp
@@ -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)