X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=9b7ab033c12ca5ab21fdc7e7d79829401253cbea;hp=6aea40682d98b499f36916e712718a2c5c78483c;hb=c714b90594cb7ec1fc9635c6e9abb15cef6d7095;hpb=431c3ac485386cc10413fc8a3c7d338dcc71602d diff --git a/src/uci.cpp b/src/uci.cpp index 6aea4068..9b7ab033 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2013 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -194,14 +194,13 @@ namespace { void go(const Position& pos, istringstream& is) { Search::LimitsType limits; - vector searchMoves; string token; while (is >> token) { if (token == "searchmoves") while (is >> token) - searchMoves.push_back(move_from_uci(pos, token)); + limits.searchmoves.push_back(move_from_uci(pos, token)); else if (token == "wtime") is >> limits.time[WHITE]; else if (token == "btime") is >> limits.time[BLACK]; @@ -216,6 +215,6 @@ namespace { else if (token == "ponder") limits.ponder = true; } - Threads.start_thinking(pos, limits, searchMoves, SetupStates); + Threads.start_thinking(pos, limits, SetupStates); } }