mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-26 03:02:27 +00:00
fix: correct off-by-one in GetSpellLevel for Berserker class (#5060)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ba2ca5eada
commit
348094b881
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user