aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzranger1 <35553094+zranger1@users.noreply.github.com>2018-01-20 08:01:12 -0700
committerShauren <shauren.trinity@gmail.com>2018-01-20 16:01:12 +0100
commit79528cd39ff1f1e164eff099f9d3e0fcf79c7f63 (patch)
tree85275a456d248efb51875513fb001bd8b7c47537 /src
parent1a32b1d3224ae2805253b82efd881645abeda8be (diff)
Core/Items: Fixed crash with auction house bot seller (#21271)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Item/Item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp
index c33bcd25b0d..231433ec2b7 100644
--- a/src/server/game/Entities/Item/Item.cpp
+++ b/src/server/game/Entities/Item/Item.cpp
@@ -319,7 +319,7 @@ bool Item::Create(ObjectGuid::LowType guidlow, uint32 itemId, Player const* owne
if (i < 5)
SetSpellCharges(i, itemProto->Effects[i]->Charges);
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itemProto->Effects[i]->SpellID))
- if (spellInfo->HasEffect(SPELL_EFFECT_GIVE_ARTIFACT_POWER))
+ if (owner && spellInfo->HasEffect(SPELL_EFFECT_GIVE_ARTIFACT_POWER))
if (uint32 artifactKnowledgeLevel = owner->GetCurrency(CURRENCY_TYPE_ARTIFACT_KNOWLEDGE))
SetModifier(ITEM_MODIFIER_ARTIFACT_KNOWLEDGE_LEVEL, artifactKnowledgeLevel + 1);
}