fix(Vehicle): Crash (#16184)

This commit is contained in:
Angelo Venturini
2023-05-10 10:32:15 -03:00
committed by GitHub
parent 8224a90a99
commit d7bdf5f717

View File

@@ -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;