diff --git a/src/search.cpp b/src/search.cpp index 77acd89e..3cae0e3f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -507,7 +507,7 @@ namespace { Rml.init(pos, rootMoves); // Handle special case of searching on a mate/stalemate position - if (!Rml.size()) + if (Rml.empty()) { cout << "info" << depth_to_uci(DEPTH_ZERO) << score_to_uci(pos.in_check() ? -VALUE_MATE : VALUE_DRAW, alpha, beta) << endl;