Skip to content

Commit

Permalink
Quest: Fix QUEST_FLAGS_AUTO_ACCEPT for GO givers
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 13, 2025
1 parent 9082f31 commit c180df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/GossipDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c180df7

Please sign in to comment.