]> git.sesse.net Git - stockfish/commit
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)
commit43276cbec5891fe0e0c6530130f5d7a9d24e862f
tree328f23ef7f20ff1f924fb1c0e9ac53181aec4d5c
parenta9e55d43262d11a916bdfa68cd1de0174d884cd3
Fix a bug in insert_pv() where minimum depth is zero

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>
src/tt.cpp