mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Fix a serious bug in TranspositionTable::retrieve()
Reported by Tord Romstad. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -144,9 +144,8 @@ const TTEntry* TranspositionTable::retrieve(const Position &pos) const {
|
||||
|
||||
TTEntry *tte = first_entry(pos);
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int i = 0; i < 4; i++, tte++)
|
||||
{
|
||||
tte += i;
|
||||
if (tte->key() == pos.get_key())
|
||||
return tte;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user