1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

vcmi: use SpellSchool identifier instead of enum

Use identifier instead of enum inside callbacks. It is better and more
expandable solution.
This commit is contained in:
Konstantin
2023-08-21 22:10:32 +03:00
committed by Konstantin P
parent 75c39c6562
commit d746a96d55
10 changed files with 28 additions and 28 deletions

View File

@@ -260,7 +260,7 @@ namespace JsonRandom
vstd::erase_if(spells, [=](const SpellID & spell)
{
return !VLC->spellh->getById(spell)->hasSchool(ESpellSchool(schoolID));
return !VLC->spellh->getById(spell)->hasSchool(SpellSchool(schoolID));
});
}