Skip to content

Commit f47d7fb

Browse files
authored
Fix hashmove reference in code (#414)
Bench: 4467773 STC ELO | 0.56 +- 2.16 (95%) SPRT | 10.0+0.10s Threads=1 Hash=8MB LLR | 2.95 (-2.94, 2.94) [-3.00, 0.50] GAMES | N: 45528 W: 10536 L: 10462 D: 24530
1 parent fc7e9b7 commit f47d7fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*
526526
// and look at it more (extend). Singular is determined by checking all other
527527
// moves at a shallow depth on a nullwindow that is somewhere below the tt evaluation
528528
// implemented using "skip move" recursion like in SF (allows for reductions when doing singular search)
529-
if (!isRoot && depth >= 7 && tt && move == tt->move && tt->depth >= depth - 3 && (tt->flags & TT_LOWER)) {
529+
if (!isRoot && depth >= 7 && tt && move == hashMove && tt->depth >= depth - 3 && (tt->flags & TT_LOWER)) {
530530
int sBeta = max(ttScore - 3 * depth / 2, -CHECKMATE);
531531
int sDepth = depth / 2 - 1;
532532

@@ -550,7 +550,7 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*
550550

551551
// history extension - if the tt move has a really good history score, extend.
552552
// thank you to Connor, author of Seer for this idea
553-
else if (!isRoot && depth >= 7 && tt && move == tt->move && history >= 98304)
553+
else if (!isRoot && depth >= 7 && tt && move == hashMove && history >= 98304)
554554
extension = 1;
555555

556556
// re-capture extension - looks for a follow up capture on the same square

0 commit comments

Comments
 (0)