mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
Fix assert with empty setting value
Local value could be empty, so it's important to check it size before read first char.
This commit is contained in:
parent
bb4ffb7743
commit
46b015d3d9
@ -63,7 +63,7 @@ void Config::GameSettings::validatePaths()
|
||||
|
||||
// Do the same for data-local
|
||||
QString local = mSettings.value(QString("data-local"));
|
||||
if (local.at(0) == QChar('\"'))
|
||||
if (local.length() && local.at(0) == QChar('\"'))
|
||||
{
|
||||
local.remove(0, 1);
|
||||
local.chop(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user