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:
parent
4f015d0967
commit
57e0b496bd
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ MotionTransport::MotionTransport() : Transport(), _transportInfo(nullptr), _isMo
|
|||
|
||||
MotionTransport::~MotionTransport()
|
||||
{
|
||||
HashMapHolder<MotionTransport>::Remove(this);
|
||||
|
||||
ASSERT(_passengers.empty());
|
||||
UnloadStaticPassengers();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue