]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Use a set to store SearchMoves
[stockfish] / src / uci.cpp
index 6bc387c1848ceacf9890d2b5d6d1fe3511a7819b..ceb04dc3cf21a9f9ae92c618366c37e9fc085380 100644 (file)
@@ -201,7 +201,7 @@ namespace {
 
     string token;
     Search::LimitsType limits;
-    std::vector<Move> searchMoves;
+    std::set<Move> 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()];