mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Quests: Fixed crash in Player::RewardQuest for scenarios and lfg
Closes #19973
This commit is contained in:
@@ -15310,7 +15310,7 @@ void Player::RewardQuest(Quest const* quest, uint32 reward, Object* questGiver,
|
||||
SQLTransaction trans = SQLTransaction(nullptr);
|
||||
_SaveQuestStatus(trans);
|
||||
|
||||
SendQuestReward(quest, questGiver->ToCreature(), XP, !announce);
|
||||
SendQuestReward(quest, questGiver ? questGiver->ToCreature() : nullptr, XP, !announce);
|
||||
|
||||
// cast spells after mark quest complete (some spells have quest completed state requirements in spell_area data)
|
||||
if (quest->GetRewSpell() > 0)
|
||||
|
||||
Reference in New Issue
Block a user