1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03: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. // then do not accept moves leading to dtz + 50-move-counter == 100.
int Tablebases::probe_dtz(Position& pos, ProbeState* result) int Tablebases::probe_dtz(Position& pos, ProbeState* result)
{ {
*result = OK;
WDLScore wdl = search<true>(pos, WDLLoss, WDLWin, result); WDLScore wdl = search<true>(pos, WDLLoss, WDLWin, result);
if (*result == FAIL) if (*result == FAIL)