mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8742] Avoid aura remove triggered casts and packets send at logout/delete
This is must speedup logout and solve some crash cases or unexpected effects. Also fix some nonsense code with memory lost possibility.
This commit is contained in:
parent
7b6f4accd1
commit
15ab6794d3
6 changed files with 117 additions and 121 deletions
|
|
@ -14783,9 +14783,7 @@ void Player::_LoadActions(QueryResult *result)
|
|||
|
||||
void Player::_LoadAuras(QueryResult *result, uint32 timediff)
|
||||
{
|
||||
m_Auras.clear();
|
||||
for (int i = 0; i < TOTAL_AURAS; ++i)
|
||||
m_modAuras[i].clear();
|
||||
RemoveAllAuras();
|
||||
|
||||
//QueryResult *result = CharacterDatabase.PQuery("SELECT caster_guid,spell,effect_index,stackcount,amount,maxduration,remaintime,remaincharges FROM character_aura WHERE guid = '%u'",GetGUIDLow());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue