Core/Vehicles: Fix a crash in object update packet builder (need to remove UPDATEFLAG_VEHICLE on Unit::RemoveFromWorld)

This commit is contained in:
Machiavelli
2012-02-22 21:50:01 +01:00
parent bbfceafed6
commit dc91fc1050
+1 -5
View File
@@ -13682,11 +13682,7 @@ void Unit::RemoveFromWorld()
{
m_duringRemoveFromWorld = true;
if (IsVehicle())
{
GetVehicleKit()->Uninstall();
delete m_vehicleKit;
m_vehicleKit = NULL;
}
RemoveVehicleKit();
RemoveCharmAuras();
RemoveBindSightAuras();