mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-21 10:32:26 +00:00
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:
commit
4cf37e7d2f
@ -3363,7 +3363,7 @@ void ZoneDatabase::LoadPetInfo(Client *client)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET)) {
|
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET) || e.slot >= PET_BUFF_COUNT) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user