mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +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);
|
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())
|
if (tte->key() == pos.get_key())
|
||||||
return tte;
|
return tte;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user