diff --git a/common/spdat.cpp b/common/spdat.cpp index 1df6e55e5..3474e0d30 100644 --- a/common/spdat.cpp +++ b/common/spdat.cpp @@ -999,7 +999,7 @@ uint8 GetSpellLevel(uint16 spell_id, uint8 class_id) return UINT8_MAX; } - if (class_id >= Class::PLAYER_CLASS_COUNT) { + if (class_id < Class::Warrior || class_id > Class::Berserker) { return UINT8_MAX; }