fix(Vehicle): Crash (#16184)
This commit is contained in:
@@ -20050,6 +20050,9 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
|||||||
Unit* vehicleBase = m_vehicle->GetBase();
|
Unit* vehicleBase = m_vehicle->GetBase();
|
||||||
m_vehicle = nullptr;
|
m_vehicle = nullptr;
|
||||||
|
|
||||||
|
if (!vehicleBase)
|
||||||
|
return;
|
||||||
|
|
||||||
SetControlled(false, UNIT_STATE_ROOT); // SMSG_MOVE_FORCE_UNROOT, ~MOVEMENTFLAG_ROOT
|
SetControlled(false, UNIT_STATE_ROOT); // SMSG_MOVE_FORCE_UNROOT, ~MOVEMENTFLAG_ROOT
|
||||||
|
|
||||||
Position pos;
|
Position pos;
|
||||||
|
|||||||
Reference in New Issue
Block a user