From 4a8f8e1ee7e2f6089130d374687bf25eb091c044 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 18 Mar 2025 11:36:15 +0100 Subject: [PATCH] resetting positionIndex | bench 1143648 --- source/uci.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/uci.cpp b/source/uci.cpp index da89342..7c59ae8 100644 --- a/source/uci.cpp +++ b/source/uci.cpp @@ -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; }