From c180df7a208073b0c65159d98677ad516e6dfb86 Mon Sep 17 00:00:00 2001 From: killerwife Date: Mon, 13 Jan 2025 17:05:28 +0100 Subject: [PATCH] Quest: Fix QUEST_FLAGS_AUTO_ACCEPT for GO givers --- src/game/Entities/GossipDef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Entities/GossipDef.cpp b/src/game/Entities/GossipDef.cpp index 66d239f5b34..dd5aa543016 100644 --- a/src/game/Entities/GossipDef.cpp +++ b/src/game/Entities/GossipDef.cpp @@ -471,7 +471,7 @@ void PlayerMenu::SendQuestGiverQuestDetails(Quest const* pQuest, ObjectGuid guid GetMenuSession()->SendPacket(data); Player* player = GetMenuSession()->GetPlayer(); - Unit* giver = player->GetMap()->GetUnit(guid); + WorldObject* giver = player->GetMap()->GetWorldObject(guid); if (giver && pQuest->IsAutoAccept() && player->CanTakeQuest(pQuest, false) && player->CanAddQuest(pQuest, false)) { player->AddQuest(pQuest, giver);