mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Fix a crash on multi-pv
Bug reported by Tobias Haspel and fixed by Joona. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -903,7 +903,7 @@ namespace {
|
||||
|
||||
// Write PV lines to transposition table, in case the relevant entries
|
||||
// have been overwritten during the search.
|
||||
for (int i = 0; i < MultiPV; i++)
|
||||
for (int i = 0; i < Min(MultiPV, (int)rml.size()); i++)
|
||||
rml[i].insert_pv_in_tt(pos);
|
||||
|
||||
return alpha;
|
||||
|
||||
Reference in New Issue
Block a user