mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Quests: Fixed crash happening when a quest is marked as rewarded without a questgiver (for example lfg)
Closes #28878
This commit is contained in:
@@ -15284,7 +15284,7 @@ void Player::RewardQuest(Quest const* quest, LootItemType rewardType, uint32 rew
|
||||
//lets remove flag for delayed teleports
|
||||
SetCanDelayTeleport(false);
|
||||
|
||||
bool canHaveNextQuest = !quest->HasFlag(QUEST_FLAGS_AUTOCOMPLETE) ? !questGiver->IsPlayer() : true;
|
||||
bool canHaveNextQuest = !quest->HasFlag(QUEST_FLAGS_AUTOCOMPLETE) ? questGiver && !questGiver->IsPlayer() : true;
|
||||
if (canHaveNextQuest)
|
||||
{
|
||||
switch (questGiver->GetTypeId())
|
||||
|
||||
Reference in New Issue
Block a user