Merge 60b7f46801a85aefb9c8bb2c22d44905caefc55e into ba2ca5eada80ac758ef8c2a2510cb39b0563119a

This commit is contained in:
ltroylove 2026-04-18 12:11:24 +00:00 committed by GitHub
commit b9f70194de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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::PLAYER_CLASS_COUNT) {
return UINT8_MAX;
}