fix(Core/Transport): Fixes crash with loading player on deleted transport (#17021)

* fix(Crash): Fixes crash with loading player on deleted transport

* Remove whitespace
This commit is contained in:
Anton Popovichenko
2023-08-18 16:13:43 +02:00
committed by GitHub
parent 4f015d0967
commit 57e0b496bd

View File

@@ -39,6 +39,8 @@ MotionTransport::MotionTransport() : Transport(), _transportInfo(nullptr), _isMo
MotionTransport::~MotionTransport()
{
HashMapHolder<MotionTransport>::Remove(this);
ASSERT(_passengers.empty());
UnloadStaticPassengers();
}