From 000a598823175f0f2d2dbccb02344507afef3f0b Mon Sep 17 00:00:00 2001 From: paulfd Date: Mon, 9 Sep 2019 18:00:37 +0200 Subject: [PATCH] Corrected a bug where variables followed by an equal sign did not get replaced properly --- sfizz/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfizz/Parser.cpp b/sfizz/Parser.cpp index 474c259c..64551cee 100644 --- a/sfizz/Parser.cpp +++ b/sfizz/Parser.cpp @@ -129,7 +129,7 @@ void sfz::Parser::readSfzFile(const std::filesystem::path& fileName, std::vector while (findPos < tmpView.npos) { newString.append(tmpView, lastPos, findPos - lastPos); - const auto defineEnd = tmpView.find_first_of(" \r\t\n\f\v", findPos); + const auto defineEnd = tmpView.find_first_of("= \r\t\n\f\v", findPos); const auto candidate = tmpView.substr(findPos, defineEnd - findPos); for (auto& definePair : defines) { if (candidate == definePair.first) {