1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-30 08:57:00 +02:00

Merge pull request #280 from dydzio0614/KingdomOverviewFix

Nice, thanks :)
This commit is contained in:
DjWarmonger 2017-02-10 16:37:22 +01:00 committed by GitHub
commit fd5b94d1f8

View File

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