mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11048] Save pet's spell data as one single transaction for speed
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
2890e0f45a
commit
0941a3f851
2 changed files with 4 additions and 1 deletions
|
|
@ -380,9 +380,12 @@ void Pet::SavePetToDB(PetSaveMode mode)
|
|||
if (mode != PET_SAVE_AS_CURRENT)
|
||||
RemoveAllAuras();
|
||||
|
||||
//save pet's spell data as one single transaction
|
||||
CharacterDatabase.BeginTransaction();
|
||||
_SaveSpells();
|
||||
_SaveSpellCooldowns();
|
||||
_SaveAuras();
|
||||
CharacterDatabase.CommitTransaction;
|
||||
|
||||
uint32 ownerLow = GetOwnerGuid().GetCounter();
|
||||
std::string name = m_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue