aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index bcc8c3b2dee..89f730e2fda 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -14844,8 +14844,9 @@ void Unit::ExitVehicle()
BuildHeartBeatMsg(&data);
SendMessageToSet(&data, false);
- if(vehicle->GetBase()->GetOwnerGUID() == GetGUID())
- vehicle->Dismiss();
+ if(vehicle->GetBase()->HasUnitTypeMask(UNIT_MASK_MINION))
+ if(((Minion*)vehicle->GetBase())->GetOwner() == this)
+ vehicle->Dismiss();
}
void Unit::BuildMovementPacket(ByteBuffer *data) const
@@ -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());