Fix the recursion limit for the first turn.

It was never a problem until now because the size of the board is
greater than twice the size of the rack.
This commit is contained in:
Olivier Teulière 2012-06-18 21:29:38 +02:00
parent cbdf6d010d
commit beb6e9a395

View file

@ -55,7 +55,7 @@ void BoardSearch::search(Rack &iRack, Results &oResults, Coord::Direction iDir)
tmpRound.accessCoord().setCol(col);
tmpRound.accessCoord().setDir(Coord::HORIZONTAL);
leftPart(iRack, tmpRound, oResults, m_dic.getRoot(),
row, col, iRack.getNbTiles() - 1);
row, col, std::min(iRack.getNbTiles(), (unsigned)col) - 1);
return;
}