From 8c9c9349c7da1d86f0f35695162bbb2912a99606 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 25 Aug 2023 19:44:22 +0200 Subject: [PATCH] Allow empty bitboards in config --- src/parser.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 9be7e00..a39cf39 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -114,7 +114,7 @@ namespace { int rank; std::stringstream ss(value); target = 0; - while (!ss.eof() && ss >> file && ss >> rank) + while (!ss.eof() && ss >> file && file != '-' && ss >> rank) { if (Rank(rank - 1) > RANK_MAX || (file != '*' && File(tolower(file) - 'a') > FILE_MAX)) return false; -- 1.7.0.4