aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 6b5f5d5a95e..554d2a727c4 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -1046,7 +1046,8 @@ class spell_item_ashbringer : public SpellScriptLoader
{
PreventHitDefaultEffect(effIndex);
- Unit* caster = GetCaster())
+ Unit* caster = GetCaster();
+
if (caster->GetTypeId() != TYPEID_PLAYER)
return;
if (Player* player = caster->ToPlayer())