*Better check to decide if a vehicle should be dismissed.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-27 15:55:41 -05:00
parent 629420b54b
commit 69f6138353
+2 -2
View File
@@ -14844,7 +14844,8 @@ void Unit::ExitVehicle()
BuildHeartBeatMsg(&data);
SendMessageToSet(&data, false);
if(vehicle->GetBase()->GetOwnerGUID() == GetGUID())
if(vehicle->GetBase()->HasUnitTypeMask(UNIT_MASK_MINION))
if(((Minion*)vehicle->GetBase())->GetOwner() == this)
vehicle->Dismiss();
}
@@ -14885,7 +14886,6 @@ void Unit::BuildMovementPacket(ByteBuffer *data) const
else
{
sLog.outError("Unit %u does not have transport!", GetEntry());
OutDebugInfo();
*data << (uint8)0;
}
*data << float (GetTransOffsetX());