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
+1 -1
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;
}