From 6373fd56e90bc6114230a70cacad804248d955e2 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Wed, 24 Apr 2019 19:51:57 +0200 Subject: [PATCH] Remove useless initializations (#2115) Removes two unneeded inits, they are always set before their use later on. No functional change. --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 5911e983fba..f9fdc261b16 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -584,8 +584,7 @@ namespace { assert(0 <= ss->ply && ss->ply < MAX_PLY); (ss+1)->ply = ss->ply + 1; - ss->currentMove = (ss+1)->excludedMove = bestMove = MOVE_NONE; - ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0]; + (ss+1)->excludedMove = bestMove = MOVE_NONE; (ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE; Square prevSq = to_sq((ss-1)->currentMove);