resetting positionIndex | bench 1143648

This commit is contained in:
rektdie committed 2025-03-18 11:36:15 +01:00
1 parent d2b973b869
commit 4a8f8e1ee7
1 file changed
+4
+4
View File
@@ -107,6 +107,8 @@ void UCILoop(Board &board) {
// parse UCI "position" command
if (input.find("position") != std::string::npos) {
ParsePosition(board, input);
positionIndex = 0;
continue;
}
@@ -118,6 +120,8 @@ void UCILoop(Board &board) {
TT.Clear();
std::memset(killerMoves, 0, sizeof(killerMoves));
std::memset(historyMoves, 0, sizeof(historyMoves));
positionIndex = 0;
continue;
}