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:
@ -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);
|
||||
|
Reference in New Issue
Block a user