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:
parent
1bd543ad0c
commit
6826826e87
File diff suppressed because it is too large
Load Diff
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user