Misc cleanups

This commit is contained in:
hondacrx
2021-02-09 13:13:08 -05:00
parent 759e13f6e2
commit e04769852a
3 changed files with 4 additions and 8 deletions
-4
View File
@@ -2203,11 +2203,7 @@ namespace Game.Spells
if (player == null)
return;
if (itemTarget == null)
return;
uint enchant_id = (uint)effectInfo.MiscValue;
if (enchant_id == 0)
{
Log.outError(LogFilter.Spells, "Spell {0} Effect {1} (SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY) have 0 as enchanting id", m_spellInfo.Id, effIndex);