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

Fix regresssion - crash

This commit is contained in:
Ivan Savenko
2023-09-04 22:22:45 +03:00
parent 12c4f8d18c
commit 9735fa6d06

View File

@ -39,6 +39,7 @@ void CRmgTemplateStorage::loadObject(std::string scope, std::string name, const
{
JsonDeserializer handler(nullptr, data);
auto fullKey = scope + ":" + name; //actually it's not used
templates[fullKey] = std::make_unique<CRmgTemplate>();
templates[fullKey]->setId(fullKey);
templates[fullKey]->serializeJson(handler);
templates[fullKey]->setName(name);