diff --git a/Rapfi/search/ab/search.cpp b/Rapfi/search/ab/search.cpp index 9f42619..5cf323e 100644 --- a/Rapfi/search/ab/search.cpp +++ b/Rapfi/search/ab/search.cpp @@ -834,7 +834,8 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth } // Step 7. Razoring with VCF (~55 elo) - if (!PvNode && eval + razorMargin(depth) < alpha) { + if (!PvNode && alpha < VALUE_MATE_IN_MAX_PLY // We are not searching for a short win + && eval + razorMargin(depth) < alpha) { return vcfsearch(board, ss, alpha, alpha + 1); }