aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-03-12 19:34:37 -0300
committerariel- <ariel-@users.noreply.github.com>2018-03-12 19:34:37 -0300
commitb978b673a9053bb0d7bd63ed9261117dc7845742 (patch)
tree0dafb6d759ebd1667572db4413d20dcb0866dc5a /src
parentabb602f7c12b00480899d245ad81abdf41f39621 (diff)
Core/Spell: clear buffer from spell go before broadcasting it again without predictedpower flag
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index af3c2c2851a..de27afaf860 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -4241,6 +4241,8 @@ void Spell::SendSpellGo()
if (Player* player = m_caster->GetAffectingPlayer())
player->SendDirectMessage(packet.Write());
+ packet.Clear();
+
// update nearby players (remove flag)
castData.CastFlags &= ~CAST_FLAG_POWER_LEFT_SELF;
castData.RemainingPower = boost::none;