Fix a (bestValue == -VALUE_INFINITE) assert
authorMarco Costalba <mcostalba@gmail.com>
Tue, 18 Jan 2011 06:34:36 +0000 (07:34 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 18 Jan 2011 12:30:13 +0000 (13:30 +0100)
commit5bad5fc0a737b214b2a6b3031e4b92200be012eb
tree28f1d912fa442e16acef2fb7a9135dd6a5d23a73
parent6119e4ea3753ec5db2d12e7ad24333fcaef08e8b
Fix a (bestValue == -VALUE_INFINITE) assert

In case of a Root node we can leave with bestValue set
to -VALUE_INFINITE if search is stopped by the GUI and
stopReques flag is raised.

This patch fixes the issue.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp