mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
tab
This commit is contained in:
@@ -60,11 +60,11 @@ static const std::array schoolTabOrder =
|
|||||||
|
|
||||||
int getAnimFrameFromSchool(SpellSchool school)
|
int getAnimFrameFromSchool(SpellSchool school)
|
||||||
{
|
{
|
||||||
auto it = std::find(schoolTabOrder.begin(), schoolTabOrder.end(), school);
|
auto it = std::find(schoolTabOrder.begin(), schoolTabOrder.end(), school);
|
||||||
if (it != schoolTabOrder.end())
|
if (it != schoolTabOrder.end())
|
||||||
return std::distance(schoolTabOrder.begin(), it);
|
return std::distance(schoolTabOrder.begin(), it);
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isLegacySpellSchool(SpellSchool school)
|
bool isLegacySpellSchool(SpellSchool school)
|
||||||
|
|||||||
Reference in New Issue
Block a user