From 8d331f2b10cff29ee0571f7056ad353df6a3eabd Mon Sep 17 00:00:00 2001 From: KingPin Date: Wed, 5 Nov 2008 20:10:19 -0600 Subject: [svn] * Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source. * Better check client inventory pos data received in some client packets to skip invalid cases. * Removed some unnecessary database queries. * Make guid lookup for adding ignore async. * Added two parameter versions of the AsyncQuery function * Make queries for adding friends async. - Hunuza * Replace some PQuery() calls with more simple Query() - Hunuza * Mark spell as executed instead of deleteable to solve crash. *** Source mangos. **Its a big commit. so test with care... or without care.... whatever floats your boat. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/SpellAuras.cpp') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 9fd8ba42baf..0f20a414c8a 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3482,7 +3482,7 @@ void Aura::HandleAuraModSilence(bool apply, bool Real) if ( state == SPELL_STATE_PREPARING || state == SPELL_STATE_CASTING ) { currentSpell->cancel(); - currentSpell->SetDeletable(true); + currentSpell->SetReferencedFromCurrent(false); m_target->m_currentSpells[i] = NULL; } } -- cgit v1.2.3