mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Remove explicit convesion to int in operators
This commit is contained in:
@@ -154,7 +154,7 @@ void CSpell::forEachSchool(const std::function<void(const SpellSchool &, bool &)
|
||||
bool stop = false;
|
||||
for(auto iter : SpellConfig::SCHOOL_ORDER)
|
||||
{
|
||||
const spells::SchoolInfo & cnf = SpellConfig::SCHOOL[iter];
|
||||
const spells::SchoolInfo & cnf = SpellConfig::SCHOOL[iter.getNum()];
|
||||
if(school.at(cnf.id))
|
||||
{
|
||||
cb(cnf.id, stop);
|
||||
|
||||
Reference in New Issue
Block a user