]> git.sesse.net Git - stockfish/commitdiff
Fix a MSVC warning
authorMarco Costalba <mcostalba@gmail.com>
Sat, 24 Mar 2012 09:14:21 +0000 (10:14 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 24 Mar 2012 09:14:21 +0000 (10:14 +0100)
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 <mcostalba@gmail.com>
src/search.cpp

index 8d1b43b0f0ff1ac74cb832e72a281fdda1bf9792..fb5d375e8e591a58a91fb0e9afe8a147846b426c 100644 (file)
@@ -564,6 +564,7 @@ namespace {
     {
         tte = NULL;
         ttMove = excludedMove = MOVE_NONE;
+        ttValue = VALUE_ZERO;
         sp = ss->sp;
         bestMove = sp->bestMove;
         threatMove = sp->threatMove;