diff --git a/lib/CHeroHandler.cpp b/lib/CHeroHandler.cpp index 1f62a4721..77f990943 100644 --- a/lib/CHeroHandler.cpp +++ b/lib/CHeroHandler.cpp @@ -54,6 +54,11 @@ EAlignment::EAlignment CHeroClass::getAlignment() const return EAlignment::EAlignment(VLC->townh->factions[faction]->alignment); } +CHeroClass::CHeroClass() + : commander(nullptr) +{ +} + std::vector CObstacleInfo::getBlocked(BattleHex hex) const { std::vector ret; diff --git a/lib/CHeroHandler.h b/lib/CHeroHandler.h index 2c27093b7..78a54b197 100644 --- a/lib/CHeroHandler.h +++ b/lib/CHeroHandler.h @@ -129,6 +129,8 @@ public: std::string imageMapMale; std::string imageMapFemale; + CHeroClass(); + bool isMagicHero() const; SecondarySkill chooseSecSkill(const std::set & possibles, std::minstd_rand & distr) const; //picks secondary skill out from given possibilities