aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorthomas33 <tomaszeq93@gmail.com>2012-03-14 17:51:11 +0100
committerthomas33 <tomaszeq93@gmail.com>2012-03-14 17:51:11 +0100
commit20cd4c71ee6336610daab304959909b2f6397287 (patch)
treef4e0cab1ba6890bfa7c75fe763859667e4fa03fc /src/server/scripts/Spells
parent69c3612cfe50777e6895ec8a8f57e370a5c99c3e (diff)
Core: more more cleanup
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 079221a97e8..f2f2f9e3cdd 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -55,8 +55,8 @@ class spell_item_trigger_spell : public SpellScriptLoader
void HandleDummy(SpellEffIndex /*effIndex*/)
{
Unit* caster = GetCaster();
- if (Item* pItem = GetCastItem())
- caster->CastSpell(caster, _triggeredSpellId, true, pItem);
+ if (Item* item = GetCastItem())
+ caster->CastSpell(caster, _triggeredSpellId, true, item);
}
void Register()