mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-28 23:06:24 +02:00
Fix for bug #2435
This commit is contained in:
parent
53b2add434
commit
8a2b47d967
@ -308,9 +308,10 @@ int InfoBoxHeroData::getSubID()
|
||||
case HERO_SECONDARY_SKILL:
|
||||
if (hero->secSkills.size() > index)
|
||||
return hero->secSkills[index].first;
|
||||
case HERO_SPECIAL:
|
||||
return hero->type->ID.getNum();
|
||||
case HERO_MANA:
|
||||
case HERO_EXPERIENCE:
|
||||
case HERO_SPECIAL:
|
||||
return 0;
|
||||
default:
|
||||
assert(0);
|
||||
|
Loading…
Reference in New Issue
Block a user