1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Reintroduced partial patch from r2327 (sex->female) + typo fix.

This commit is contained in:
Frank Zago 2011-08-30 23:10:01 +00:00
parent 1bd543ad0c
commit 6826826e87
2 changed files with 160 additions and 159 deletions

File diff suppressed because it is too large Load Diff

View File

@ -290,7 +290,8 @@ void CHeroHandler::loadHeroes()
int hid = hero["id"].Float();
const JsonNode *value;
heroes[hid]->sex = hero["sex"].Float();
// sex: 0=male, 1=female
heroes[hid]->sex = !!hero["female"].Bool();
BOOST_FOREACH(const JsonNode &set, hero["skill_set"].Vector()) {
heroes[hid]->secSkillsInit.push_back(std::make_pair(set["skill"].Float(), set["level"].Float()));