Fix a silly typo done in 0902bb0f2b

This commit is contained in:
click
2011-05-13 16:28:41 +02:00
parent 12fec69361
commit a40e33efe7

View File

@@ -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())