1
0
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:
Konstantin
2023-04-04 13:36:42 +03:00
parent 0c7dbea990
commit 8968f0ef0e
15 changed files with 34 additions and 32 deletions

View File

@@ -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