fix(Vehicle): Crash (#16184)
This commit is contained in:
parent
8224a90a99
commit
d7bdf5f717
1 changed files with 3 additions and 0 deletions
|
|
@ -20050,6 +20050,9 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
|||
Unit* vehicleBase = m_vehicle->GetBase();
|
||||
m_vehicle = nullptr;
|
||||
|
||||
if (!vehicleBase)
|
||||
return;
|
||||
|
||||
SetControlled(false, UNIT_STATE_ROOT); // SMSG_MOVE_FORCE_UNROOT, ~MOVEMENTFLAG_ROOT
|
||||
|
||||
Position pos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue