From 15bb2d0f03d6631bebc56d6603332d245d8db208 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sun, 28 Dec 2008 20:02:00 +0300 Subject: [PATCH] [6963] Fixed crash at glyph item use. Prevent double deleted cast item in spell effect. Thanks to GriffonHeart for testing. --- src/game/SpellEffects.cpp | 2 -- src/shared/revision_nr.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 7710c3c2a..91a88851f 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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); } } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f3bbd4ec3..5d8d14cb8 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "6962" + #define REVISION_NR "6963" #endif // __REVISION_NR_H__