1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-16 16:10:58 +00:00

Actually erase the things we're removing

Caused by bad copy and paste
This commit is contained in:
AnyOldName3 2024-03-06 23:44:24 +00:00
parent 7f1a6a8187
commit ed23f48754

View File

@ -76,8 +76,7 @@ namespace Config
if (!existingDir.isEmpty())
{
// 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(),
[&](const SettingValue& dir) { return isUserSetting(dir) && dir.value == existingDir; });
mDataDirs.erase(std::remove_if(mDataDirs.begin(), mDataDirs.end(), [&](const SettingValue& dir) { return isUserSetting(dir) && dir.value == existingDir; }), mDataDirs.end());
}
}