mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/GameObjects: Fixed crash when GameObject::Delete was used for transports
This commit is contained in:
@@ -1394,7 +1394,8 @@ void GameObject::Delete()
|
||||
|
||||
SendGameObjectDespawn();
|
||||
|
||||
SetGoState(GO_STATE_READY);
|
||||
if (m_goInfo->type != GAMEOBJECT_TYPE_TRANSPORT)
|
||||
SetGoState(GO_STATE_READY);
|
||||
|
||||
if (GameObjectOverride const* goOverride = GetGameObjectOverride())
|
||||
ReplaceAllFlags(GameObjectFlags(goOverride->Flags));
|
||||
|
||||
Reference in New Issue
Block a user