projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
24485df
)
Fix a crash on multi-pv
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 1 Jan 2011 22:10:37 +0000 (23:10 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 1 Jan 2011 22:10:37 +0000 (23:10 +0100)
Bug reported by Tobias Haspel and fixed by Joona.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
355eed1
..
d93fbdf
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-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;