]> git.sesse.net Git - stockfish/commitdiff
Fix a bug in insert_pv() where minimum depth is zero
authorMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2009 14:30:20 +0000 (15:30 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2009 14:30:20 +0000 (15:30 +0100)
We implicitly considered the minimum depth stored in TT
to be Depth(0), but because we store values in TT also in
qsearch() where depth is < 0, we need to use a negative
number as minimum depth.

Bug spotted by Joona Kiiski.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found