X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftt.cpp;h=c94dae53eb0289d4df142e2765ba7b71ff512099;hb=f4ace94f91c31631a280b929d50fbe7077305dc2;hp=d0e2d729c8c766e883092277bfc5fd97b2bb58e2;hpb=098f645d26675bcf2180b290be77fe64a63de3ae;p=stockfish diff --git a/src/tt.cpp b/src/tt.cpp index d0e2d729..c94dae53 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -87,7 +87,7 @@ TTEntry* TranspositionTable::probe(const Key key, bool& found) const { // Find an entry to be replaced according to the replacement strategy TTEntry* replace = tte; for (int i = 1; i < ClusterSize; ++i) - if ( (( tte[i].genBound8 & 0xFC) == generation8 || tte[i].bound() == BOUND_EXACT) + if ( (( tte[i].genBound8 & 0xFC) == generation8) - ((replace->genBound8 & 0xFC) == generation8) - (tte[i].depth8 < replace->depth8) < 0) replace = &tte[i];