mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Fix compare function in previous patch
Bench: 4012371
This commit is contained in:
parent
5d1568632c
commit
328bdd0947
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ Score Entry::do_king_safety(const Position& pos) {
|
||||||
Square ksq = pos.square<KING>(Us);
|
Square ksq = pos.square<KING>(Us);
|
||||||
kingSquares[Us] = ksq;
|
kingSquares[Us] = ksq;
|
||||||
castlingRights[Us] = pos.castling_rights(Us);
|
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);
|
Score shelter = evaluate_shelter<Us>(pos, ksq);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue