mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11719] Destroy all movement generators at Unit::CleanupsBeforeDelete call
this fixes possible crash at grid unloading
This commit is contained in:
parent
0176b15cf0
commit
e302fce513
1 changed files with 1 additions and 1 deletions
|
|
@ -9448,7 +9448,7 @@ void Unit::CleanupsBeforeDelete()
|
|||
else
|
||||
getHostileRefManager().deleteReferences();
|
||||
RemoveAllAuras(AURA_REMOVE_BY_DELETE);
|
||||
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
|
||||
GetMotionMaster()->Clear(false,true); // remove all movement generators.
|
||||
}
|
||||
WorldObject::CleanupsBeforeDelete();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue