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:
parent
8925a28cf1
commit
0610a13789
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue