zwsearch: fixed bug which was introduced when switched to fail-hard
commitacebb17f5e566d2a310fb2cbf85e4af19a18db73
authorAndrey Sofronov <andrey.sofronov@gmail.com>
Sat, 9 Oct 2010 20:42:08 +0000 (9 23:42 +0300)
committerAndrey Sofronov <andrey.sofronov@gmail.com>
Sat, 9 Oct 2010 20:42:08 +0000 (9 23:42 +0300)
tree9d7a662629f5f7ffffc1f35c691643471f926c2a
parent17a341895174970c4bfb726babfa36c554dc68a8
zwsearch: fixed bug which was introduced when switched to fail-hard

After switching to fail hard, I overlooked a place where an incorrect
value is returned when we get cut-off from the transposition table.
Now in case of alpha or beta cut-off we return beta - 1 or beta.
zwsearch.c