Merge pull request #67 from Valorith/copilot/sub-pr-65-again

Add PET_BUFF_COUNT bounds guard on pet buff load
This commit is contained in:
Vayle 2026-03-09 13:13:38 -04:00 committed by GitHub
commit 4cf37e7d2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3363,7 +3363,7 @@ void ZoneDatabase::LoadPetInfo(Client *client)
continue;
}
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET)) {
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET) || e.slot >= PET_BUFF_COUNT) {
continue;
}