1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00
This commit is contained in:
Laserlicht
2025-07-08 14:20:15 +02:00
committed by GitHub
parent c562aff7d2
commit 07a62e28b9

View File

@@ -60,11 +60,11 @@ static const std::array schoolTabOrder =
int getAnimFrameFromSchool(SpellSchool school)
{
auto it = std::find(schoolTabOrder.begin(), schoolTabOrder.end(), school);
if (it != schoolTabOrder.end())
return std::distance(schoolTabOrder.begin(), it);
auto it = std::find(schoolTabOrder.begin(), schoolTabOrder.end(), school);
if (it != schoolTabOrder.end())
return std::distance(schoolTabOrder.begin(), it);
else
return -1;
return -1;
}
bool isLegacySpellSchool(SpellSchool school)