From 69eafa76901f66978765b75dc2720f72f6c7912c Mon Sep 17 00:00:00 2001 From: John Fultz Date: Thu, 7 Jul 2016 11:59:45 -0500 Subject: Fix compiler warning. --- game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game.cpp') 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) -- cgit v1.2.3