aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-03-08 16:42:00 +0100
committerShauren <shauren.trinity@gmail.com>2011-03-08 16:42:00 +0100
commite5347a3bdadc5468916a11f9da5c9561f955f79a (patch)
treea01fd9010a6eb3e40f1d89103738a3cd5fbe96de /src/server/scripts/Spells
parent00f2ded757f2fe47ca40d3c5269008e6fa39aa21 (diff)
Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter C4701: potentially uninitialized local variable C4389: '!=' : signed/unsigned mismatch C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 1395625c975..3ddd5af6ed1 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -828,6 +828,7 @@ class spell_item_create_heart_candy : public SpellScriptLoader
void HandleScript(SpellEffIndex effIndex)
{
+ PreventHitDefaultEffect(effIndex);
if (!GetHitUnit() || !GetHitUnit()->ToPlayer())
return;