projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
046fd49
)
Fix a serious bug in TranspositionTable::retrieve()
author
Marco Costalba
<mcostalba@gmail.com>
Mon, 3 Nov 2008 18:59:58 +0000 (19:59 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Tue, 4 Nov 2008 19:56:30 +0000 (20:56 +0100)
Reported by Tord Romstad.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/tt.cpp
patch
|
blob
|
history
diff --git
a/src/tt.cpp
b/src/tt.cpp
index
d7037a3
..
4ac685d
100644
(file)
--- a/
src/tt.cpp
+++ b/
src/tt.cpp
@@
-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;
}