diff --git a/src/search.cpp b/src/search.cpp index b9ff56fb..496df5db 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -959,8 +959,8 @@ moves_loop: // When in check and at SpNode search starts from here ss->reduction += ONE_PLY; if ( History[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO - && CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq] - [pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO) + && CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq] + [pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO) ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY); // Decrease reduction for moves that escape a capture