1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Partial fix for Coronius specialty bug

This commit is contained in:
Ivan Savenko
2023-12-10 19:17:58 +02:00
parent c0572b061a
commit 65721123a1

View File

@@ -107,8 +107,8 @@ const CSpell::LevelInfo & CSpell::getLevelInfo(const int32_t level) const
{
if(level < 0 || level >= GameConstants::SPELL_SCHOOL_LEVELS)
{
logGlobal->error("CSpell::getLevelInfo: invalid school level %d", level);
return levels.at(0);
logGlobal->error("CSpell::getLevelInfo: invalid school mastery level %d", level);
return levels.at(MasteryLevel::EXPERT);
}
return levels.at(level);