1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #1177 from IvanSavenko/fix_mod_identifiers

Fix mod identifiers registration & incorrect mod validation
This commit is contained in:
Andrii Danylchenko
2022-12-02 09:20:49 +02:00
committed by GitHub
9 changed files with 64 additions and 38 deletions

View File

@@ -373,8 +373,8 @@ CArtifact * CArtHandler::loadFromJson(const std::string & scope, const JsonNode
if(!art->advMapDef.empty())
{
JsonNode templ;
templ.setMeta(scope);
templ["animation"].String() = art->advMapDef;
templ.setMeta(scope);
// add new template.
// Necessary for objects added via mods that don't have any templates in H3