diff --git a/src/search.cpp b/src/search.cpp index e5eddf8..bb9febf 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -258,7 +258,7 @@ int SearchState::search(int alpha, int beta, Position &pos, int depth, SearchInf && !check && !excluded && depth >= 2 - && (stack-1)->currMove != NULL_MOVE + && ((stack-1)->currMove != NULL_MOVE || (stack-2)->currMove != NULL_MOVE) && stack->staticEval >= beta && beta > -MAXMATE) {