1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

- moved json-related functions (e.g. ParseBonus) into JsonUtils namespace

- replaced JsonNode::toStdVector with more universal convertTo
- some renaming in StartInfo
This commit is contained in:
Ivan Savenko
2012-12-02 12:21:44 +00:00
parent ca9033d0e4
commit c9dd80ea6d
20 changed files with 340 additions and 273 deletions

View File

@@ -364,7 +364,7 @@ void CSpellHandler::loadSpells()
BOOST_FOREACH(const JsonNode &range, spell["ranges"].Vector())
s->range[idx++] = range.String();
s->counteredSpells = spell["counters"].StdVector<TSpell>();
s->counteredSpells = spell["counters"].convertTo<std::vector<TSpell> >();
}
//spell fixes