Search on the game rack, not on the player one

This commit is contained in:
Olivier Teulière 2012-03-11 16:57:27 +01:00
parent 0fa7bc91c6
commit c9f61d7ac8

View file

@ -74,8 +74,7 @@ void Arbitration::setRackManual(const wstring &iLetters)
void Arbitration::search()
{
// Search for the current player
const Rack &rack = m_players[m_currPlayer]->getCurrentRack().getRack();
const Rack &rack = getHistory().getCurrentRack().getRack();
LOG_DEBUG("Performing search for rack " + lfw(rack.toString()));
int limit = Settings::Instance().getInt("arbitration.search-limit");
m_results.setLimit(limit);