From 4ed82c71dc9e24748cb06a6c70f4d52e87372ecc Mon Sep 17 00:00:00 2001 From: David Chavez Date: Mon, 1 Aug 2022 09:18:48 +0200 Subject: [PATCH] Fix c++20 clang issue --- soh/soh/Enhancements/debugconsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/debugconsole.cpp b/soh/soh/Enhancements/debugconsole.cpp index 85a8c3829..ba866b062 100644 --- a/soh/soh/Enhancements/debugconsole.cpp +++ b/soh/soh/Enhancements/debugconsole.cpp @@ -529,7 +529,7 @@ void DebugConsole_LoadLegacyCVars() { if (cfg[1].find("\"") == std::string::npos && (cfg[1].find("#") != std::string::npos)) { std::string value(cfg[1]); - value.erase(std::ranges::remove(value, '#').begin(), value.end()); + value.erase(std::remove_if(value.begin(), value.end(), [](char c) { return c == '#'; }), value.end()); auto splitTest = StringHelper::Split(value, "\r")[0]; uint32_t val = std::stoul(splitTest, nullptr, 16);