]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Fix a wrong check in pos_is_ok()
[stockfish] / src / uci.cpp
index 6bc387c1848ceacf9890d2b5d6d1fe3511a7819b..c44c23fa12af2b505a72f762f4b7a979daaa53f3 100644 (file)
@@ -20,7 +20,6 @@
 #include <iostream>
 #include <sstream>
 #include <string>
-#include <vector>
 
 #include "evaluate.h"
 #include "misc.h"
@@ -201,7 +200,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 +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()];