diff --git a/source/search.cpp b/source/search.cpp index 31c7d2b..99696c8 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -303,8 +303,8 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { } } - TT.WriteEntry(board.hashKey, depth, results.score, nodeType, results.bestMove); if (searchStopped) return 0; + TT.WriteEntry(board.hashKey, depth, results.score, nodeType, results.bestMove); return results; }