Fix c++20 clang issue
This commit is contained in:
parent
9389ceb8c1
commit
4ed82c71dc
|
@ -529,7 +529,7 @@ void DebugConsole_LoadLegacyCVars() {
|
||||||
if (cfg[1].find("\"") == std::string::npos && (cfg[1].find("#") != std::string::npos))
|
if (cfg[1].find("\"") == std::string::npos && (cfg[1].find("#") != std::string::npos))
|
||||||
{
|
{
|
||||||
std::string value(cfg[1]);
|
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];
|
auto splitTest = StringHelper::Split(value, "\r")[0];
|
||||||
|
|
||||||
uint32_t val = std::stoul(splitTest, nullptr, 16);
|
uint32_t val = std::stoul(splitTest, nullptr, 16);
|
||||||
|
|
Loading…
Reference in New Issue