Fix missing settings fail.

This commit is contained in:
Brenden Matthews
2022-12-26 17:09:28 +00:00
committed by Brenden Matthews
parent c28ad36c4c
commit ffd34a4fc0

View File

@@ -121,9 +121,11 @@ settings_vector make_settings_vector() {
// fill the vec with the settings which are ordered, then we add the remainder // fill the vec with the settings which are ordered, then we add the remainder
// in. // in.
for (auto &name : settings_ordering) { for (auto &name : settings_ordering) {
if (settings->count(name) > 0) {
auto setting = settings->at(name); auto setting = settings->at(name);
ret.push_back(setting); ret.push_back(setting);
} }
}
for (auto &setting : *settings) { for (auto &setting : *settings) {
if (std::find(settings_ordering.begin(), settings_ordering.end(), if (std::find(settings_ordering.begin(), settings_ordering.end(),
setting.second->name) == settings_ordering.end()) { setting.second->name) == settings_ordering.end()) {