Fix bogus comment removal

The previous substr call would remove everything but the comment, which
    is not what we want.
This commit is contained in:
scorpion-26 2023-02-10 17:10:35 +01:00
parent 883037029f
commit f916b00de7

View file

@ -114,7 +114,7 @@ void Config::Load()
}
if (comment != std::string_view::npos)
{
lineView = lineView.substr(comment - 1);
lineView = lineView.substr(0, comment - 1);
}
bool foundProperty = false;
@ -135,7 +135,7 @@ void Config::Load()
if (foundProperty == false)
{
LOG("Warning: unknown config var: " << line);
LOG("Warning: unknown config var: " << lineView);
continue;
}
}