mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
*First remove object from world then unregister it. This may fix some crashes.
--HG-- branch : trunk
This commit is contained in:
@@ -85,10 +85,9 @@ void Pet::RemoveFromWorld()
|
||||
///- Remove the pet from the accessor
|
||||
if(IsInWorld())
|
||||
{
|
||||
///- Remove the pet from the accessor
|
||||
ObjectAccessor::Instance().RemoveObject(this);
|
||||
///- Don't call the function for Creature, normal mobs + totems go in a different storage
|
||||
Unit::RemoveFromWorld();
|
||||
ObjectAccessor::Instance().RemoveObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user