mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2024-11-15 03:27:41 +01:00
Fix a small bug in remove_keys_already_in_fallback()
This commit is contained in:
parent
11d6f26c73
commit
f972e95c57
@ -88,17 +88,17 @@ namespace better {
|
||||
const nlohmann::ordered_json& object,
|
||||
const nlohmann::ordered_json& fallback
|
||||
) {
|
||||
nlohmann::ordered_json j;
|
||||
auto new_object = nlohmann::ordered_json::object();
|
||||
for (const auto& [key, value] : object.items()) {
|
||||
if (not fallback.contains(key)) {
|
||||
j[key] = value;
|
||||
new_object[key] = value;
|
||||
} else {
|
||||
if (fallback[key] != value) {
|
||||
j[key] = value;
|
||||
new_object[key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
return new_object;
|
||||
};
|
||||
|
||||
nlohmann::ordered_json dump_memon_1_0_0_timing_object(
|
||||
|
Loading…
Reference in New Issue
Block a user