mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix h3 bug: icons of View Earth and View Air are swapped
This commit is contained in:
@@ -142,7 +142,13 @@ void RenderHandler::initFromJson(AnimationLayoutMap & source, const JsonNode & c
|
||||
|
||||
JsonNode toAdd = node;
|
||||
JsonUtils::inherit(toAdd, base);
|
||||
toAdd["file"].String() = basepath + node["file"].String();
|
||||
|
||||
if (toAdd.Struct().count("file"))
|
||||
toAdd["file"].String() = basepath + node["file"].String();
|
||||
|
||||
if (toAdd.Struct().count("defFile"))
|
||||
toAdd["defFile"].String() = basepath + node["defFile"].String();
|
||||
|
||||
source[group][frame] = ImageLocator(toAdd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user