1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Initialize result before probing

This commit is contained in:
Marco Costalba 2016-05-22 07:26:13 +02:00
parent 8925a28cf1
commit 0610a13789

View file

@ -1449,6 +1449,7 @@ WDLScore Tablebases::probe_wdl(Position& pos, ProbeState* result)
// then do not accept moves leading to dtz + 50-move-counter == 100.
int Tablebases::probe_dtz(Position& pos, ProbeState* result)
{
*result = OK;
WDLScore wdl = search<true>(pos, WDLLoss, WDLWin, result);
if (*result == FAIL)