1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-17 20:58:07 +02:00

Merge pull request #2936 from Laserlicht/json_fix

[fix] no invalid json
This commit is contained in:
Ivan Savenko 2023-09-24 11:30:49 +03:00 committed by GitHub
commit ad4c92b6e1
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())
{