Arbitration: fix a bug when a word is checked manually.

The check didn't verify that it is actually possible to play the word
with the current rack.
This commit is contained in:
Olivier Teulière 2012-11-10 17:29:24 +01:00
parent 8858c54656
commit 81f2507181

View file

@ -85,7 +85,7 @@ Move Arbitration::checkWord(const wstring &iWord,
const wstring &iCoords) const
{
Round round;
int res = checkPlayedWord(iCoords, iWord, round, false);
int res = checkPlayedWord(iCoords, iWord, round, true);
if (res == 0)
return Move(round);
return Move(iWord, iCoords);