1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Compile fix.

This commit is contained in:
DjWarmonger 2012-08-25 09:21:18 +00:00
parent cf15ca1cf0
commit 669c8a104a

View File

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