X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=a9811a9af7352ae74308979a4751721b6bfcc042;hp=cfd253b1f586a5c8d7ddda7f50bb8b5b8162eeac;hb=94e41274bba2d8a2f2d58aaa711df5872309d66c;hpb=7eaea3848c9e8a388c0b79cee6fba6bf3cd32108 diff --git a/src/uci.cpp b/src/uci.cpp index cfd253b1..a9811a9a 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -42,7 +42,7 @@ namespace { // A list to keep track of the position states along the setup moves (from the // start position to the position just before the search starts). Needed by // 'draw by repetition' detection. - StateListPtr States(new std::vector(1)); + StateListPtr States(new std::deque(1)); // position() is called when engine receives the "position" UCI command. @@ -68,7 +68,7 @@ namespace { else return; - States = StateListPtr(new std::vector(1)); + States = StateListPtr(new std::deque(1)); pos.set(fen, Options["UCI_Chess960"], &States->back(), Threads.main()); // Parse move list (if any)