mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user