mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8729] Fix crash added in [8725]. Sorry.
This commit is contained in:
parent
8baee4a73f
commit
ce3d0170f6
3 changed files with 3 additions and 2 deletions
|
|
@ -1112,6 +1112,7 @@ WorldObject::WorldObject()
|
||||||
|
|
||||||
void WorldObject::CleanupsBeforeDelete()
|
void WorldObject::CleanupsBeforeDelete()
|
||||||
{
|
{
|
||||||
|
RemoveFromWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldObject::_Create( uint32 guidlow, HighGuid guidhigh, uint32 phaseMask )
|
void WorldObject::_Create( uint32 guidlow, HighGuid guidhigh, uint32 phaseMask )
|
||||||
|
|
|
||||||
|
|
@ -11110,7 +11110,7 @@ void Unit::CleanupsBeforeDelete()
|
||||||
RemoveAllDynObjects();
|
RemoveAllDynObjects();
|
||||||
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
|
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
|
||||||
}
|
}
|
||||||
RemoveFromWorld();
|
WorldObject::CleanupsBeforeDelete();
|
||||||
}
|
}
|
||||||
|
|
||||||
CharmInfo* Unit::InitCharmInfo(Unit *charm)
|
CharmInfo* Unit::InitCharmInfo(Unit *charm)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8728"
|
#define REVISION_NR "8729"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue