mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Compile fix.
This commit is contained in:
parent
cf15ca1cf0
commit
669c8a104a
@ -193,7 +193,7 @@ void CHeroHandler::loadHeroes()
|
||||
|
||||
// sex: 0=male, 1=female
|
||||
heroes[hid]->sex = !!hero["female"].Bool();
|
||||
heroes[hid]->heroType = CHero::EHeroClasses(hero["class"].Float());
|
||||
heroes[hid]->heroType = CHero::EHeroClasses((int)hero["class"].Float());
|
||||
|
||||
BOOST_FOREACH(const JsonNode &set, hero["skill_set"].Vector()) {
|
||||
heroes[hid]->secSkillsInit.push_back(std::make_pair(set["skill"].Float(), set["level"].Float()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user