diff --git a/source/search.cpp b/source/search.cpp index 7e5cec7..3803656 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -152,9 +152,9 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { } } + pvLine.SetLength(ply); if (ply && IsThreefold(board)) return 0; - pvLine.SetLength(ply); // if NOT PV node then we try to hit the TTable if (beta - alpha == 1) {