X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=ceb04dc3cf21a9f9ae92c618366c37e9fc085380;hp=6bc387c1848ceacf9890d2b5d6d1fe3511a7819b;hb=a29dd88f7563c5af871d9adc137218c39586b09c;hpb=a1076cc68aa1fe322024d15b677499f9a03b7457 diff --git a/src/uci.cpp b/src/uci.cpp index 6bc387c1..ceb04dc3 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -201,7 +201,7 @@ namespace { string token; Search::LimitsType limits; - std::vector searchMoves; + std::set searchMoves; int time[] = { 0, 0 }, inc[] = { 0, 0 }; while (is >> token) @@ -228,7 +228,7 @@ namespace { is >> limits.maxTime; else if (token == "searchmoves") while (is >> token) - searchMoves.push_back(move_from_uci(pos, token)); + searchMoves.insert(move_from_uci(pos, token)); } limits.time = time[pos.side_to_move()];