From 651e64990202c58c6dfeed95b2d29732082888e6 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Thu, 3 Sep 2015 20:19:11 +0200 Subject: [PATCH] DroidFish: Fixed syzygy probing bug. See https://github.com/official-stockfish/Stockfish/issues/394. --- DroidFish/jni/rtb/rtb-probe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DroidFish/jni/rtb/rtb-probe.cpp b/DroidFish/jni/rtb/rtb-probe.cpp index 010beaa..b2a2fed 100644 --- a/DroidFish/jni/rtb/rtb-probe.cpp +++ b/DroidFish/jni/rtb/rtb-probe.cpp @@ -578,7 +578,7 @@ int Syzygy::probe_dtz(Position& pos, int *success) if (v1 >= 0) v = v1; } else if (v < 0) { - if (v1 >= 0 || v1 < 100) + if (v1 >= 0 || v1 < -100) v = v1; } else if (v > 100) { if (v1 > 0)