Skip to content

Commit e995506

Browse files
committed
compile fix (still exclude current move)
1 parent ff112bd commit e995506

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ Value doSearch(
472472
std::clamp(session.historyHeuristic[(int)move.from()][(int)move.to()] + bonus, -16384, 16384);
473473
int malus = 300 * depth - 250;
474474
for (Move move_ : quietsSearched)
475-
if (m != move)
475+
if (move_ != move)
476476
session.historyHeuristic[(int)move_.from()][(int)move_.to()] =
477477
std::clamp(session.historyHeuristic[(int)move_.from()][(int)move_.to()] - malus, -16384, 16384);
478478
if (session.killerMoves[ply][0] != move) {

0 commit comments

Comments
 (0)