diff options
author | Ovahlord <dreadkiller@gmx.de> | 2024-07-11 16:01:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 16:01:53 +0200 |
commit | 3bb327b2bc74745af3833f08e19d7a9e5cc88215 (patch) | |
tree | 993e12b049812bbbc0dd9a9008854023a8cd892c | |
parent | 0af322637926ee68bf721194956da23aaa0c754f (diff) |
buildfix
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 338461967d8..dcd0e6afcbc 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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()); |