mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
- loading fix
This commit is contained in:
@@ -207,10 +207,6 @@ CHeroHandler::~CHeroHandler()
|
|||||||
|
|
||||||
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)
|
void CHeroHandler::load(const JsonNode & input)
|
||||||
@@ -320,6 +316,10 @@ void CHeroHandler::loadHeroJson(CHero * hero, const JsonNode & node)
|
|||||||
|
|
||||||
void CHeroHandler::load()
|
void CHeroHandler::load()
|
||||||
{
|
{
|
||||||
|
for (int i = 0; i < GameConstants::SKILL_QUANTITY; ++i)
|
||||||
|
{
|
||||||
|
VLC->modh->identifiers.registerObject("skill." + SecondarySkill::names[i], i);
|
||||||
|
}
|
||||||
classes.load();
|
classes.load();
|
||||||
loadHeroes();
|
loadHeroes();
|
||||||
loadHeroTexts();
|
loadHeroTexts();
|
||||||
|
|||||||
Reference in New Issue
Block a user