]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Fix compare function in previous patch
[stockfish] / src / pawns.cpp
index bc1cf38af9c2706f54b793967866f632aa5c65c0..1e5b4f43b9a6560b61d3f496e7b40ed226c8538d 100644 (file)
@@ -231,7 +231,7 @@ Score Entry::do_king_safety(const Position& pos) {
   Square ksq = pos.square<KING>(Us);
   kingSquares[Us] = ksq;
   castlingRights[Us] = pos.castling_rights(Us);
-  auto compare = [](Score a, Score b) { return mg_value(a) <= mg_value(b); };
+  auto compare = [](Score a, Score b) { return mg_value(a) < mg_value(b); };
 
   Score shelter = evaluate_shelter<Us>(pos, ksq);