mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
vcmi: change EAlignment to enum class
This commit is contained in:
@@ -147,9 +147,9 @@ bool CHeroClass::isMagicHero() const
|
||||
return affinity == MAGIC;
|
||||
}
|
||||
|
||||
EAlignment::EAlignment CHeroClass::getAlignment() const
|
||||
EAlignment CHeroClass::getAlignment() const
|
||||
{
|
||||
return ((*VLC->townh)[faction]->alignment);
|
||||
return VLC->factions()->getByIndex(faction)->getAlignment();
|
||||
}
|
||||
|
||||
int32_t CHeroClass::getIndex() const
|
||||
|
||||
Reference in New Issue
Block a user