Ivan Savenko 2 лет назад
Родитель
Сommit
9735fa6d06
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      lib/rmg/CRmgTemplateStorage.cpp

+ 1 - 0
lib/rmg/CRmgTemplateStorage.cpp

@@ -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);