Core: more more cleanup

This commit is contained in:
thomas33 committed 2012-03-14 17:51:11 +01:00
1 parent 69c3612cfe
commit 20cd4c71ee
27 files changed
+804 -804

No files matched your search

+2 -2
View File
@@ -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()