From d0377753ff066bf6b60657f23af86ff330f82e58 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 4 Jan 2011 20:07:29 +0300 Subject: [PATCH] [10960] Send SMSG_DISMOUNT to client. As know no any affect in work from it. --- src/game/Unit.cpp | 6 +++++- src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 17989861d54..f88e726255c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 798df4853b3..c94ffcb668a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10959" + #define REVISION_NR "10960" #endif // __REVISION_NR_H__