mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
Fix running game without wog active
This commit is contained in:
@@ -1337,7 +1337,8 @@ void CGHeroInstance::restoreBonusSystem(CGameState & gs)
|
|||||||
{
|
{
|
||||||
CArmedInstance::restoreBonusSystem(gs);
|
CArmedInstance::restoreBonusSystem(gs);
|
||||||
artDeserializationFix(gs, this);
|
artDeserializationFix(gs, this);
|
||||||
this->commander->artDeserializationFix(gs, this->commander.get());
|
if (commander)
|
||||||
|
commander->artDeserializationFix(gs, this->commander.get());
|
||||||
if (boardedBoat.hasValue())
|
if (boardedBoat.hasValue())
|
||||||
{
|
{
|
||||||
auto boat = gs.getObjInstance(boardedBoat);
|
auto boat = gs.getObjInstance(boardedBoat);
|
||||||
@@ -1613,7 +1614,8 @@ void CGHeroInstance::levelUp(const std::vector<SecondarySkill> & skills)
|
|||||||
|
|
||||||
void CGHeroInstance::attachCommanderToArmy()
|
void CGHeroInstance::attachCommanderToArmy()
|
||||||
{
|
{
|
||||||
commander->setArmy(this);
|
if (commander)
|
||||||
|
commander->setArmy(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGHeroInstance::levelUpAutomatically(vstd::RNG & rand)
|
void CGHeroInstance::levelUpAutomatically(vstd::RNG & rand)
|
||||||
|
Reference in New Issue
Block a user