Make low ply history size fixed

Size of low ply history should always be the same, so ensure it.

closes https://github.com/official-stockfish/Stockfish/pull/5630

No functional change
This commit is contained in:
Michael Chaly
2024-10-12 08:32:15 +03:00
committed by Disservin
parent b261df970d
commit 9766db8139
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1851,7 +1851,7 @@ void update_quiet_histories(
Color us = pos.side_to_move();
workerThread.mainHistory[us][move.from_to()] << bonus;
if (ss->ply < 4)
if (ss->ply < LOW_PLY_HISTORY_SIZE)
workerThread.lowPlyHistory[ss->ply][move.from_to()] << bonus;
update_continuation_histories(ss, pos.moved_piece(move), move.to_sq(), bonus);