TrinityCore: Fixed crash in Player::RewardQuest for scenarios and lfg

This commit is contained in:
hondacrx
2017-07-02 11:56:19 -04:00
parent 9f1ded7797
commit 0022923079
+1 -1
View File
@@ -1021,7 +1021,7 @@ namespace Game.Entities
// (to prevent rewarding this quest another time while rewards were already given out)
_SaveQuestStatus(null);
SendQuestReward(quest, questGiver.ToCreature(), XP, !announce);
SendQuestReward(quest, questGiver?.ToCreature(), XP, !announce);
// cast spells after mark quest complete (some spells have quest completed state requirements in spell_area data)
if (quest.RewardSpell > 0)