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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user