mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
- loading fix
This commit is contained in:
parent
dad5771a09
commit
beac6b12d8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user