mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
fix(Vehicle): Crash (#16184)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user