From fceed5f609b87a9a332091b1dab48c485ec74291 Mon Sep 17 00:00:00 2001 From: Alvin Zhu Date: Fri, 10 Mar 2023 13:59:28 +0800 Subject: [PATCH] fix debug crash client --- src/PlayerbotAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index a0a717a6..306f6174 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -538,7 +538,7 @@ void PlayerbotAI::HandleCommand(uint32 type, std::string const text, Player* fro { std::string const response = HandleRemoteCommand(filtered.substr(6)); WorldPacket data; - ChatHandler::BuildChatPacket(data, CHAT_MSG_ADDON, LANG_ADDON, nullptr, bot, response.c_str()); + ChatHandler::BuildChatPacket(data, (ChatMsg)type, type == CHAT_MSG_ADDON ? LANG_ADDON : LANG_UNIVERSAL, bot, nullptr, response.c_str()); fromPlayer->SendDirectMessage(&data); return; }