X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=b3af1b607a24138d4a87d0b0f327472d9fe0b81d;hp=a64520050f084e481cc2804aba1dec5406f21c66;hb=d2c2af9e1c4f5711e320555fe31ae4ed940802c6;hpb=3b1e64ab72cb2373b9e675ebcc8a1f7c94c71dfd diff --git a/src/uci.cpp b/src/uci.cpp index a6452005..b3af1b60 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -123,7 +123,7 @@ namespace { } else if (token == "ucinewgame") { - TT.clear(); + push_button("Clear Hash"); Position::init_piece_square_tables(); RootPosition.from_fen(StartPosition); } @@ -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(); } } }