mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-16 22:18:20 +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:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user