summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-19 19:46:48 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commit2911988b852ec29016780aabb1f46e2d0c231744 (patch)
treeee8e0c2838ab83bb68c931bc3023b13f7c1a6322 /src/common
parentsettings: Remove sorting from log (diff)
downloadyuzu-2911988b852ec29016780aabb1f46e2d0c231744.tar
yuzu-2911988b852ec29016780aabb1f46e2d0c231744.tar.gz
yuzu-2911988b852ec29016780aabb1f46e2d0c231744.tar.bz2
yuzu-2911988b852ec29016780aabb1f46e2d0c231744.tar.lz
yuzu-2911988b852ec29016780aabb1f46e2d0c231744.tar.xz
yuzu-2911988b852ec29016780aabb1f46e2d0c231744.tar.zst
yuzu-2911988b852ec29016780aabb1f46e2d0c231744.zip
Diffstat (limited to '')
-rw-r--r--src/common/settings_common.cpp2
-rw-r--r--src/common/settings_common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp
index 1439fb451..90842e797 100644
--- a/src/common/settings_common.cpp
+++ b/src/common/settings_common.cpp
@@ -12,7 +12,7 @@ BasicSetting::BasicSetting(Linkage& linkage, const std::string& name, enum Categ
: label{name}, category{category_}, id{linkage.count}, save{save_},
runtime_modifiable{runtime_modifiable_}, specialization{specialization_},
other_setting{other_setting_} {
- linkage.by_category[category].push_front(this);
+ linkage.by_category[category].push_back(this);
linkage.count++;
}
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index a7630a97f..bfd1bad64 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -66,7 +66,7 @@ class Linkage {
public:
explicit Linkage(u32 initial_count = 0);
~Linkage();
- std::map<Category, std::forward_list<BasicSetting*>> by_category{};
+ std::map<Category, std::vector<BasicSetting*>> by_category{};
std::vector<std::function<void()>> restore_functions{};
u32 count;
};