Simplify away a useless TTEntry::read()

Not needed when we don hit an entry.

closes https://github.com/official-stockfish/Stockfish/pull/5416

No functional change
This commit is contained in:
mstembera
2024-06-29 17:18:39 -07:00
committed by Joost VandeVondele
parent 22a502ac74
commit 90eca83e7f
+1 -1
View File
@@ -238,7 +238,7 @@ std::tuple<bool, TTData, TTWriter> TranspositionTable::probe(const Key key) cons
> tte[i].depth8 - tte[i].relative_age(generation8) * 2) > tte[i].depth8 - tte[i].relative_age(generation8) * 2)
replace = &tte[i]; replace = &tte[i];
return {false, replace->read(), TTWriter(replace)}; return {false, TTData(), TTWriter(replace)};
} }