mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Core/GameObjects: Fixed crash when GameObject::Delete was used for transports
This commit is contained in:
@@ -1221,7 +1221,8 @@ void GameObject::Delete()
|
||||
|
||||
SendGameObjectDespawn();
|
||||
|
||||
SetGoState(GO_STATE_READY);
|
||||
if (m_goInfo->type != GAMEOBJECT_TYPE_TRANSPORT)
|
||||
SetGoState(GO_STATE_READY);
|
||||
|
||||
if (GameObjectTemplateAddon const* addon = GetTemplateAddon())
|
||||
SetUInt32Value(GAMEOBJECT_FLAGS, addon->flags);
|
||||
|
||||
Reference in New Issue
Block a user