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:
committed by
GitHub
parent
4f015d0967
commit
57e0b496bd
@@ -39,6 +39,8 @@ MotionTransport::MotionTransport() : Transport(), _transportInfo(nullptr), _isMo
|
|||||||
|
|
||||||
MotionTransport::~MotionTransport()
|
MotionTransport::~MotionTransport()
|
||||||
{
|
{
|
||||||
|
HashMapHolder<MotionTransport>::Remove(this);
|
||||||
|
|
||||||
ASSERT(_passengers.empty());
|
ASSERT(_passengers.empty());
|
||||||
UnloadStaticPassengers();
|
UnloadStaticPassengers();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user