Core/Packets: fixed a console error when trying to broadcast SMSG_MOVE_UPDATE via packet sender
This commit is contained in:
1 parent
04b99ab8ac
commit
557d5497a3
1 file changed
+9
@@ -15,6 +15,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "MovementPackets.h"
|
||||
#include "MovementStructures.h"
|
||||
#include "Log.h"
|
||||
#include "Player.h"
|
||||
@@ -5571,6 +5572,14 @@ void Movement::PacketSender::Send() const
|
||||
|
||||
if (_broadcast != NULL_OPCODE)
|
||||
{
|
||||
if (_broadcast == SMSG_MOVE_UPDATE)
|
||||
{
|
||||
WorldPackets::Movement::MoveUpdate moveUpdate;
|
||||
moveUpdate.Status = &_unit->m_movementInfo;
|
||||
_unit->SendMessageToSet(moveUpdate.Write(), !isPlayerMovement);
|
||||
return;
|
||||
}
|
||||
|
||||
///! Need to reset current extra element index before writing another packet
|
||||
if (_extraElements)
|
||||
_extraElements->ResetIndex();
|
||||
|
||||
Reference in new issue
Block a user