Fix Typo in previous commit

Fixes issue 2295

--HG--
branch : trunk
This commit is contained in:
Spp
2010-05-21 12:25:03 +02:00
parent ee507dd945
commit c551b23b15

View File

@@ -5203,7 +5203,7 @@ SpellCastResult Spell::CheckCast(bool strict)
Unit* target = m_targets.getUnitTarget();
if (m_caster == target && m_caster->hasUnitState(UNIT_STAT_ROOT))
{
if (m_caster->GetTypeID() == TYPEID_PLAYER)
if (m_caster->GetTypeId() == TYPEID_PLAYER)
return SPELL_FAILED_ROOTED;
else
return SPELL_FAILED_DONT_REPORT;