mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
add missing null check
This commit is contained in:
parent
76b1397c71
commit
c3e7f235e0
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ public:
|
|||
void saveSettingValueToSave(std::string const& key) {
|
||||
if (this->settings.contains(key)) {
|
||||
auto& sett = this->settings.at(key);
|
||||
if (!sett.v3) return;
|
||||
// Store the value in an intermediary so if `save` fails the existing
|
||||
// value loaded from disk isn't overwritten
|
||||
matjson::Value value;
|
||||
|
|
Loading…
Reference in a new issue