From: Marco Costalba Date: Sat, 24 Mar 2012 09:14:21 +0000 (+0100) Subject: Fix a MSVC warning X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f8224fc7d31324376c36c4788f1935a341d2187b;hp=b356e0fae3b78e39af2ae8aca6ca6197e8669819 Fix a MSVC warning Not correct warning about use of an uninitialized variable. The warning is not correct becuase we can never reach the warned code when in SpNode, anyhow the fix is simple. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 8d1b43b0..fb5d375e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -564,6 +564,7 @@ namespace { { tte = NULL; ttMove = excludedMove = MOVE_NONE; + ttValue = VALUE_ZERO; sp = ss->sp; bestMove = sp->bestMove; threatMove = sp->threatMove;