fix Mod::setSettingValue

This commit is contained in:
ConfiG 2023-06-01 23:03:02 +03:00 committed by alk
parent 69fabc1fd9
commit 58477bbd2c

View file

@ -153,7 +153,7 @@ namespace geode {
template <class T> template <class T>
T setSettingValue(std::string const& key, T const& value) { T setSettingValue(std::string const& key, T const& value) {
if (auto sett = this->getSetting(key)) { if (auto sett = this->getSetting(key)) {
auto old = this->getSettingValue<T>(sett); auto old = this->getSettingValue<T>(key);
SettingValueSetter<T>::set(sett, value); SettingValueSetter<T>::set(sett, value);
return old; return old;
} }