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

Fix pet_buffs.reserve to use cumulative size across pet type iterations
This commit is contained in:
Vayle 2026-03-09 13:10:52 -04:00 committed by GitHub
commit e948d17756
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3168,7 +3168,7 @@ void ZoneDatabase::SavePetInfo(Client *client)
pet_buff_count++;
}
pet_buffs.reserve(pet_buff_count);
pet_buffs.reserve(pet_buffs.size() + pet_buff_count);
for (int slot_id = 0; slot_id < max_slots; slot_id++) {
if (!IsValidOrSuppressedSpell(p->Buffs[slot_id].spellid)) {