diff options
| author | megamage <none@none> | 2009-08-27 15:55:41 -0500 | 
|---|---|---|
| committer | megamage <none@none> | 2009-08-27 15:55:41 -0500 | 
| commit | 69f6138353da6019f125332f6a6134a75190b23a (patch) | |
| tree | 070b63b77f17d511bec8718634265f702ddc5f45 /src/game/Unit.cpp | |
| parent | 629420b54b983109377c69e1d58363faead709ad (diff) | |
*Better check to decide if a vehicle should be dismissed.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 6 | 
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());  | 
