mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
c1c6f770ed
commit
15bb2d0f03
2 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue