From 884bb7b7c515004fa73a3263e302808b563ffba4 Mon Sep 17 00:00:00 2001 From: mstembera Date: Tue, 1 Sep 2015 17:36:03 -0700 Subject: [PATCH] Fix for issue https://github.com/official-stockfish/Stockfish/issues/394 Credit and thanks to syzygy1 and lantonov ! --- src/syzygy/tbprobe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index 646176a9e7a..7bce67eabea 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -624,7 +624,7 @@ int Tablebases::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)