summaryrefslogtreecommitdiff
path: root/src/scripts/Spells/spell_item.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-09-18 03:16:32 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-09-18 03:16:32 +0200
commit5ec07ef31ff972dbe3c3be3fdaab4ab8aad9512c (patch)
tree6b2126773aea642162afaeaa6db99103d55184ef /src/scripts/Spells/spell_item.cpp
parentcf627d832717c990b02da5e5ba06b4f218079321 (diff)
Removed more warnings, mostly related to unused-variable
issue #121 We still have to work on unused-parameter
Diffstat (limited to 'src/scripts/Spells/spell_item.cpp')
-rw-r--r--src/scripts/Spells/spell_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/Spells/spell_item.cpp b/src/scripts/Spells/spell_item.cpp
index 289d3fe5cb..2748f170a7 100644
--- a/src/scripts/Spells/spell_item.cpp
+++ b/src/scripts/Spells/spell_item.cpp
@@ -1255,7 +1255,7 @@ class spell_item_summon_or_dismiss : public SpellScriptLoader
{
for (Unit::ControlSet::iterator itr = GetCaster()->m_Controlled.begin(); itr != GetCaster()->m_Controlled.end(); ++itr)
{
- if ((*itr)->GetEntry() == GetSpellInfo()->Effects[effIndex].MiscValue)
+ if (GetSpellInfo()->Effects[effIndex].MiscValue >= 0 && (*itr)->GetEntry() == uint32(GetSpellInfo()->Effects[effIndex].MiscValue))
{
(*itr)->ToTempSummon()->UnSummon();
PreventHitDefaultEffect(effIndex);