Actually erase the things we're removing

Caused by bad copy and paste
pull/3235/head
AnyOldName3 10 months ago
parent 7f1a6a8187
commit ed23f48754

@ -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());
}
}

Loading…
Cancel
Save