Fix c++20 clang issue

This commit is contained in:
David Chavez 2022-08-01 09:18:48 +02:00 committed by Nicholas Estelami
parent 9389ceb8c1
commit 4ed82c71dc

View File

@ -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);