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:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user