Skip to content

Commit

Permalink
Quest: Additional check and style change
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Aug 16, 2024
1 parent 5a91931 commit 373fcaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/Entities/GossipDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,8 @@ void PlayerMenu::SendQuestGiverQuestDetails(Quest const* pQuest, ObjectGuid guid

Player* player = GetMenuSession()->GetPlayer();
Unit* giver = player->GetMap()->GetUnit(guid);
if (giver && pQuest->IsAutoAccept() && player->CanTakeQuest(pQuest, false))
{
if (giver && pQuest->IsAutoAccept() && player->CanTakeQuest(pQuest, false) && player->CanAddQuest(pQuest, false))

This comment has been minimized.

Copy link
@Exxenoz

Exxenoz Aug 16, 2024

Member

How could you not see this redundant whitespace . 😭

This comment has been minimized.

Copy link
@killerwife

killerwife Aug 17, 2024

Contributor

Fixed

player->AddQuest(pQuest, giver);
}

DEBUG_LOG("WORLD: Sent SMSG_QUESTGIVER_QUEST_DETAILS - for %s of %s, questid = %u", GetMenuSession()->GetPlayer()->GetGuidStr().c_str(), guid.GetString().c_str(), pQuest->GetQuestId());
}
Expand Down

0 comments on commit 373fcaf

Please sign in to comment.