X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=c44c23fa12af2b505a72f762f4b7a979daaa53f3;hp=6bc387c1848ceacf9890d2b5d6d1fe3511a7819b;hb=ea5616785e7cc35808d75897282109c51e823caa;hpb=8307da0de77c9c7bbf7c56a7d9c8a688ff4dfb4e diff --git a/src/uci.cpp b/src/uci.cpp index 6bc387c1..c44c23fa 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -20,7 +20,6 @@ #include #include #include -#include #include "evaluate.h" #include "misc.h" @@ -201,7 +200,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 +227,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()];