diff --git a/src/server/game/Chat/Chat.h b/src/server/game/Chat/Chat.h index 348058e72..c1b145d91 100644 --- a/src/server/game/Chat/Chat.h +++ b/src/server/game/Chat/Chat.h @@ -62,9 +62,9 @@ public: // All in one chat message builder static void BuildChatPacket( WorldPacket& data, ChatMsg msgtype, std::string_view message, Language language = LANG_UNIVERSAL, PlayerChatTag chatTag = CHAT_TAG_NONE, - ObjectGuid const& senderGuid = ObjectGuid(), std::string_view senderName = nullptr, - ObjectGuid const& targetGuid = ObjectGuid(), std::string_view targetName = nullptr, - std::string_view channelName = nullptr, uint32 achievementId = 0); + ObjectGuid const& senderGuid = ObjectGuid(), std::string_view senderName = {}, + ObjectGuid const& targetGuid = ObjectGuid(), std::string_view targetName = {}, + std::string_view channelName = {}, uint32 achievementId = 0); static char* LineFromMessage(char*& pos) { char* start = strtok(pos, "\n"); pos = nullptr; return start; }