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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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