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

- loading fix

This commit is contained in:
Ivan Savenko 2013-01-24 21:03:01 +00:00
parent dad5771a09
commit beac6b12d8

View File

@ -207,10 +207,6 @@ CHeroHandler::~CHeroHandler()
CHeroHandler::CHeroHandler()
{
for (int i = 0; i < GameConstants::SKILL_QUANTITY; ++i)
{
VLC->modh->identifiers.registerObject("skill." + SecondarySkill::names[i], i);
}
}
void CHeroHandler::load(const JsonNode & input)
@ -320,6 +316,10 @@ void CHeroHandler::loadHeroJson(CHero * hero, const JsonNode & node)
void CHeroHandler::load()
{
for (int i = 0; i < GameConstants::SKILL_QUANTITY; ++i)
{
VLC->modh->identifiers.registerObject("skill." + SecondarySkill::names[i], i);
}
classes.load();
loadHeroes();
loadHeroTexts();