1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00
* simplify JSON values getting
* ensure initialization of Bonus fields
This commit is contained in:
alexvins
2013-03-14 17:21:16 +00:00
parent 9e7fe4d011
commit f686edc1b8
4 changed files with 14 additions and 23 deletions

View File

@@ -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();
}
}
}