aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorGyx <2359980687@qq.com>2012-03-16 20:57:13 +0800
committerGyx <2359980687@qq.com>2012-03-16 20:57:13 +0800
commite5afa4a950a2de40fd84f0e0fb1cc14468041087 (patch)
tree423750942cf9930b1b4b8c6ce3cf7850f621489e /src/server/scripts/Spells
parentcd38e7df2ba09b20f1ea8d778e9b6fe1e0365740 (diff)
Core/Script: Clean-Up in Scripts.
Item* pItem -> Item* item Signed-off-by: Gyx <2359980687@qq.com>
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()