From ede3e415ab4dab39d2f88f588a7f0f79d6c4187b Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 1 May 2021 23:27:46 +0200 Subject: Core/Chat: Apply chat translation also to messeges sent to self --- src/server/game/Entities/Player/Player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d66163527a6..208abfda260 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -21972,13 +21972,13 @@ void Player::Say(std::string const& text, Language language, WorldObject const* void Player::SendChatMessageToSetInRange(ChatMsg chatMsg, Language language, std::string&& text, float range) { - Trinity::ChatPacketSender customizer(chatMsg, language, this, this, std::move(text)); + Trinity::ChatPacketSender sender(chatMsg, language, this, this, std::move(text)); // Send to self - SendDirectMessage(customizer.UntranslatedPacket.GetRawPacket()); + sender(this); // Send to players - Trinity::MessageDistDeliverer notifier(this, customizer, range); + Trinity::MessageDistDeliverer notifier(this, sender, range); Cell::VisitWorldObjects(this, notifier, range); } -- cgit v1.2.3