mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-21 23:58:51 -05:00
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))
|
||||
{
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user