X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=9b7ab033c12ca5ab21fdc7e7d79829401253cbea;hp=9f9d84cca96a680717bf17c89b091de67b0a04c6;hb=41641e3b1eea0038ab6984;hpb=2f5aaf7de670b489e6a9635ae22713ed48e9f156 diff --git a/src/uci.cpp b/src/uci.cpp index 9f9d84cc..9b7ab033 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -194,14 +194,13 @@ namespace { void go(const Position& pos, istringstream& is) { Search::LimitsType limits; - vector searchMoves; string token; while (is >> token) { if (token == "searchmoves") while (is >> token) - searchMoves.push_back(move_from_uci(pos, token)); + limits.searchmoves.push_back(move_from_uci(pos, token)); else if (token == "wtime") is >> limits.time[WHITE]; else if (token == "btime") is >> limits.time[BLACK]; @@ -216,6 +215,6 @@ namespace { else if (token == "ponder") limits.ponder = true; } - Threads.start_thinking(pos, limits, searchMoves, SetupStates); + Threads.start_thinking(pos, limits, SetupStates); } }