X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0e249705fa59a89e00d1f689d714bf33bbe024f9;hp=d93fbdf79635d3b14a854fa979e87babb802df7c;hb=2bb555025fc94fde3972b644bdbd27f245475213;hpb=f902ddaa89440cd2f3a981cc1dfbfad609a9e0fb diff --git a/src/search.cpp b/src/search.cpp index d93fbdf7..0e249705 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -513,6 +513,9 @@ bool think(Position& pos, bool infinite, bool ponder, int time[], int increment[ << move_to_san(pos, ponderMove) // Works also with MOVE_NONE << endl; + // Return from think() with unchanged position + pos.undo_move(bestMove); + LogFile.close(); }