Core/GameObjects: Fixed crash when GameObject::Delete was used for transports

This commit is contained in:
Shauren
2022-07-10 00:54:36 +02:00
parent db79e29121
commit af4474926f

View File

@@ -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));