Add missing endrange

This commit is contained in:
igor725 2024-05-07 17:35:38 +03:00
parent 66956f3acb
commit 878bd67cff
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -184,7 +184,7 @@ Config::Config() {
removeUnused = [&getVal, &removeUnused](json& obj, json& def) -> bool {
if (obj.is_array()) {
if (obj.size() > def.size()) {
obj.erase(obj.begin() + std::distance(def.begin(), def.end()));
obj.erase(obj.begin() + std::distance(def.begin(), def.end()), obj.end());
return true;
}