mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00: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:
parent
24485df3df
commit
f902ddaa89
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue