[6963] Fixed crash at glyph item use.

Prevent double deleted cast item in spell effect.
Thanks to GriffonHeart for testing.
This commit is contained in:
VladimirMangos 2008-12-28 20:02:00 +03:00
parent c1c6f770ed
commit 15bb2d0f03
2 changed files with 1 additions and 3 deletions

View file

@ -5237,8 +5237,6 @@ void Spell::EffectApplyGlyph(uint32 i)
player->CastSpell(m_caster, gp->SpellId, true);
player->SetGlyph(m_glyphIndex, glyph);
if(m_CastItem)
player->DestroyItemCount(m_CastItem->GetEntry(), 1, true);
}
}
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6962"
#define REVISION_NR "6963"
#endif // __REVISION_NR_H__