X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=4a333f70b7540b2d660070bf6579cfaafaa5cc50;hp=a64520050f084e481cc2804aba1dec5406f21c66;hb=5b1316f7bbb259b87cecc276e4a1ce78b1a0e51b;hpb=bafb9f1a25204d06960a44f0637736edce233629 diff --git a/src/uci.cpp b/src/uci.cpp index a6452005..4a333f70 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -210,9 +210,9 @@ namespace { if (RootPosition.rule_50_counter() == 0) RootPosition.reset_game_ply(); } - // Our StateInfo st is about going out of scope, - // so save its content before they disappear. - RootPosition.setStartState(st); + // Our StateInfo st is about going out of scope so copy + // its content inside RootPosition before they disappear. + RootPosition.saveState(); } } }