major bugfix in parseposition | bench 4118297

This commit is contained in:
rektdie committed 2025-03-12 19:20:45 +01:00
1 parent ebb0a79962
commit 8d097058fe
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ void ParsePosition(Board &board, std::string_view command) {
if (movesIndex != std::string::npos) {
board.SetByFen(command.substr(fenIndex + 4, movesIndex - 2 - (fenIndex + 3)));
} else {
std::cout << (command.substr(fenIndex + 4, command.length() - (fenIndex + 3)));
board.SetByFen(command.substr(fenIndex + 4, command.length() - (fenIndex + 3)));
}
}