From e79b7d7f088a0184228642abffd05a4603a81622 Mon Sep 17 00:00:00 2001 From: Thomas Knoll Date: Tue, 16 Jan 2024 22:01:09 +0100 Subject: [PATCH] fixed guard overwrite --- util/Grid.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/Grid.cpp b/util/Grid.cpp index 8ecfa44..012b905 100644 --- a/util/Grid.cpp +++ b/util/Grid.cpp @@ -115,6 +115,8 @@ void Grid::applyOverwrites(std::string& str, std::vector& configu search = config.identifier_; } else if (config.type_ == ConfigType::UpdateOnly) { search = config.identifier_; + } else if (config.type_ == ConfigType::GuardOnly) { + search = config.identifier_; } else if (config.type_ == ConfigType::Constant) { search = config.identifier_; @@ -128,7 +130,7 @@ void Grid::applyOverwrites(std::string& str, std::vector& configu if (config.type_ == ConfigType::GuardOnly) { - start_pos += search.length(); + start_pos += search.length(); } else if (config.type_ == ConfigType::UpdateOnly) { start_pos = str.find("->", start_pos) + 2; }