mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
fix Mod::setSettingValue
This commit is contained in:
parent
69fabc1fd9
commit
58477bbd2c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue