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

Initializing CHeroClass::commander.

This commit is contained in:
Michał W. Urbańczyk 2014-01-06 17:45:21 +00:00
parent c2cbd8da27
commit 4674e8e3d8
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,11 @@ EAlignment::EAlignment CHeroClass::getAlignment() const
return EAlignment::EAlignment(VLC->townh->factions[faction]->alignment);
}
CHeroClass::CHeroClass()
: commander(nullptr)
{
}
std::vector<BattleHex> CObstacleInfo::getBlocked(BattleHex hex) const
{
std::vector<BattleHex> ret;

View File

@ -129,6 +129,8 @@ public:
std::string imageMapMale;
std::string imageMapFemale;
CHeroClass();
bool isMagicHero() const;
SecondarySkill chooseSecSkill(const std::set<SecondarySkill> & possibles, std::minstd_rand & distr) const; //picks secondary skill out from given possibilities