make sure m_saved in Mod is initialized to an object

This commit is contained in:
HJfod 2023-01-28 21:27:39 +02:00
parent ef86ae03f1
commit 5bbd34cd73

View file

@ -48,7 +48,7 @@ namespace geode {
/**
* Saved values
*/
json::Value m_saved;
json::Value m_saved = json::Object();
/**
* Setting values
*/
@ -56,7 +56,7 @@ namespace geode {
/**
* Settings save data. Stored for efficient loading of custom settings
*/
json::Value m_savedSettingsData;
json::Value m_savedSettingsData = json::Object();
Impl(Mod* self, ModInfo const& info);
~Impl();