diff --git a/config/schemas/hero.json b/config/schemas/hero.json index 68c3a474a..e584d2fb4 100644 --- a/config/schemas/hero.json +++ b/config/schemas/hero.json @@ -59,6 +59,11 @@ "type":"boolean", "description": "This hero is female (changeable via editor)" }, + "battleImage": { + "type":"string", + "description": "Custom def used on battle", + "format" : "defFile" + }, "images": { "type":"object", "additionalProperties" : false, @@ -84,11 +89,6 @@ "type":"string", "description": "Small image of hero specialty for use in exchange screen", "format" : "imageFile" - }, - "battleImage": { - "type":"string", - "description": "Custom def used on battle", - "format" : "defFile" } } }, diff --git a/lib/CHeroHandler.cpp b/lib/CHeroHandler.cpp index 12231c508..28aff408d 100644 --- a/lib/CHeroHandler.cpp +++ b/lib/CHeroHandler.cpp @@ -322,7 +322,7 @@ CHero * CHeroHandler::loadFromJson(const JsonNode & node, const std::string & id hero->iconSpecLarge = node["images"]["specialtyLarge"].String(); hero->portraitSmall = node["images"]["small"].String(); hero->portraitLarge = node["images"]["large"].String(); - hero->battleImage = node["images"]["battleImage"].String(); + hero->battleImage = node["battleImage"].String(); loadHeroArmy(hero, node); loadHeroSkills(hero, node);