Scripts/ChatCommands: Constrain how char const* may be used as a command handler parameter. It may now only be used in the legacy configuration, as the only argument.

(cherry picked from commit 9fda67d016)
This commit is contained in:
Treeston
2020-09-20 15:01:46 +02:00
committed by Shauren
parent 46d4e2fa83
commit c13d7df72b
3 changed files with 21 additions and 21 deletions

View File

@@ -111,11 +111,11 @@ void WorldSession::HandleQuestgiverAcceptQuestOpcode(WorldPackets::Quest::QuestG
else
object = ObjectAccessor::FindPlayer(packet.QuestGiverGUID);
#define CLOSE_GOSSIP_CLEAR_SHARING_INFO() \
do { \
_player->PlayerTalkClass->SendCloseGossip(); \
_player->ClearQuestSharingInfo(); \
} while (0)
auto CLOSE_GOSSIP_CLEAR_SHARING_INFO = ([this]()
{
_player->PlayerTalkClass->SendCloseGossip();
_player->ClearQuestSharingInfo();
});
// no or incorrect quest giver
if (!object)