mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix loading of spell immunity icons for corresponding bonus
This commit is contained in:
@@ -310,7 +310,7 @@ bool CSpell::canCastWithoutSkip() const
|
||||
return castWithoutSkip;
|
||||
}
|
||||
|
||||
const std::string & CSpell::getIconImmune() const
|
||||
const ImagePath & CSpell::getIconImmune() const
|
||||
{
|
||||
return iconImmune;
|
||||
}
|
||||
@@ -948,7 +948,7 @@ std::shared_ptr<CSpell> CSpellHandler::loadFromJson(const std::string & scope, c
|
||||
|
||||
const JsonNode & graphicsNode = json["graphics"];
|
||||
|
||||
spell->iconImmune = graphicsNode["iconImmune"].String();
|
||||
spell->iconImmune = ImagePath::fromJson(graphicsNode["iconImmune"]);
|
||||
spell->iconBook = graphicsNode["iconBook"].String();
|
||||
spell->iconEffect = graphicsNode["iconEffect"].String();
|
||||
spell->iconScenarioBonus = graphicsNode["iconScenarioBonus"].String();
|
||||
|
||||
Reference in New Issue
Block a user