Skip to content

Commit e60c4a2

Browse files
authored
Update search.cpp
1 parent cfa8687 commit e60c4a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

search.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ namespace engine
105105
if (score > alpha){
106106
alpha = score;
107107
if (!board.isCapture(move))
108-
movepick::historyHeuristic[from][to] += depth * depth;
108+
movepick::historyHeuristic[(int)move.from()][(int)move.to()] += depth * depth;
109109
}
110110
if (alpha >= beta)
111111
{
112112
if (!board.isCapture(move))
113113
{
114114
if (movepick::killerMoves[ply][0] != move)
115115
{
116-
movepick::killerMoves[ply][1] = killerMoves[ply][0];
116+
movepick::killerMoves[ply][1] = movepick::killerMoves[ply][0];
117117
movepick::killerMoves[ply][0] = move;
118118
}
119119
}
@@ -127,7 +127,7 @@ namespace engine
127127
return VALUE_NONE;
128128
}
129129

130-
if (maxScore != -VALUE_INFINITE)
130+
if (maxScore != -VALUE_INFINITE){
131131
TTFlag flag;
132132

133133
if (maxScore <= alphaOrig)

0 commit comments

Comments
 (0)