mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Cleanup
* simplify JSON values getting * ensure initialization of Bonus fields
This commit is contained in:
@@ -532,9 +532,7 @@ void CSpellHandler::load()
|
||||
const JsonNode & graphicsNode = spell.second["graphics"];
|
||||
if (!graphicsNode.isNull())
|
||||
{
|
||||
const JsonNode& iconImmune = graphicsNode["iconImmune"];
|
||||
if (!iconImmune.isNull())
|
||||
s->iconImmune = iconImmune.String();
|
||||
s->iconImmune = graphicsNode["iconImmune"].String();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user