1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

no invalid json

This commit is contained in:
Laserlicht 2023-09-24 01:30:03 +02:00 committed by GitHub
parent 1f2ca138dd
commit fccecf023b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,11 @@ void SettingsStorage::init(const std::string & dataFilename, const std::string &
// Probably new install. Create config file to save settings to
if (!CResourceHandler::get("local")->existsResource(confName))
{
CResourceHandler::get("local")->createResource(dataFilename);
if(schema.empty())
invalidateNode(std::vector<std::string>());
}
if(!schema.empty())
{