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,8 +121,10 @@ 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) {
auto setting = settings->at(name); if (settings->count(name) > 0) {
ret.push_back(setting); auto setting = settings->at(name);
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(),