1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed empty scope on resolving map overrides

This commit is contained in:
Ivan Savenko 2023-04-03 15:15:29 +03:00
parent 191959ae05
commit c5acb8bb7d

View File

@ -136,6 +136,8 @@ static JsonNode loadPatches(std::string path)
JsonNode node = JsonUtils::assembleFromFiles(std::move(path));
for (auto & entry : node.Struct())
JsonUtils::validate(entry.second, "vcmi:mapHeader", "patch for " + entry.first);
node.setMeta(CModHandler::scopeMap());
return node;
}