mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00: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:
parent
046fd4926f
commit
ff0d9dad2b
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue