mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +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)
|
if (mode != PET_SAVE_AS_CURRENT)
|
||||||
RemoveAllAuras();
|
RemoveAllAuras();
|
||||||
|
|
||||||
|
//save pet's spell data as one single transaction
|
||||||
|
CharacterDatabase.BeginTransaction();
|
||||||
_SaveSpells();
|
_SaveSpells();
|
||||||
_SaveSpellCooldowns();
|
_SaveSpellCooldowns();
|
||||||
_SaveAuras();
|
_SaveAuras();
|
||||||
|
CharacterDatabase.CommitTransaction;
|
||||||
|
|
||||||
uint32 ownerLow = GetOwnerGuid().GetCounter();
|
uint32 ownerLow = GetOwnerGuid().GetCounter();
|
||||||
std::string name = m_name;
|
std::string name = m_name;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11047"
|
#define REVISION_NR "11048"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue