This commit is contained in:
Ovahlord
2024-07-11 16:01:53 +02:00
committed by GitHub
parent 0af3226379
commit 3bb327b2bc

View File

@@ -14714,7 +14714,7 @@ void Player::RewardQuest(Quest const* quest, LootItemType rewardType, uint32 rew
{
for (QuestRewardDisplaySpell displaySpell : quest->RewardDisplaySpell)
{
if (!displaySpell || !ConditionMgr::IsPlayerMeetingCondition(this, displaySpell.PlayerConditionId))
if (!displaySpell.SpellId || !ConditionMgr::IsPlayerMeetingCondition(this, displaySpell.PlayerConditionId))
continue;
SpellInfo const* spellInfo = sSpellMgr->AssertSpellInfo(displaySpell.SpellId, GetMap()->GetDifficultyID());