[10960] Send SMSG_DISMOUNT to client.

As know no any affect in work from it.
This commit is contained in:
VladimirMangos 2011-01-04 20:07:29 +03:00
parent 7828ee18ad
commit 3a99027a80
2 changed files with 6 additions and 2 deletions

View file

@ -7651,7 +7651,11 @@ void Unit::Unmount()
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_MOUNTED);
SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, 0);
RemoveFlag( UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT );
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT);
WorldPacket data(SMSG_DISMOUNT, 8);
data << GetPackGUID();
SendMessageToSet(&data, true);
// only resummon old pet if the player is already added to a map
// this prevents adding a pet to a not created map which would otherwise cause a crash