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)
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user