mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
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:
parent
cbdf6d010d
commit
beb6e9a395
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue