1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Remove useless initializations (#2115)

Removes two unneeded inits, they are always set before their use later on.

No functional change.
This commit is contained in:
Joost VandeVondele 2019-04-24 19:51:57 +02:00 committed by Marco Costalba
parent a858b5a84e
commit 6373fd56e9

View file

@ -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);