mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Actually erase the things we're removing
Caused by bad copy and paste
This commit is contained in:
parent
7f1a6a8187
commit
ed23f48754
@ -76,8 +76,7 @@ namespace Config
|
|||||||
if (!existingDir.isEmpty())
|
if (!existingDir.isEmpty())
|
||||||
{
|
{
|
||||||
// non-user settings can't be removed as we can't edit the openmw.cfg they're in
|
// non-user settings can't be removed as we can't edit the openmw.cfg they're in
|
||||||
std::remove_if(mDataDirs.begin(), mDataDirs.end(),
|
mDataDirs.erase(std::remove_if(mDataDirs.begin(), mDataDirs.end(), [&](const SettingValue& dir) { return isUserSetting(dir) && dir.value == existingDir; }), mDataDirs.end());
|
||||||
[&](const SettingValue& dir) { return isUserSetting(dir) && dir.value == existingDir; });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user