Core/Unit: Fix typo introduced in 6f2b086048

This commit is contained in:
ariel- committed 2016-02-21 00:38:21 -03:00
1 parent 4cd937140b
commit 405917e70f
1 file changed
+1 -1
+1 -1
View File
@@ -12341,7 +12341,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
if (Creature* creature = ToCreature())
{
uint32 immuneMask = creature->GetCreatureTemplate()->MechanicImmuneMask;
if (immuneMask & (1 << MECHANIC_SNARE) || immuneMask & (1 << MECHANIC_DAZE))
if (immuneMask & (1 << (MECHANIC_SNARE - 1)) || immuneMask & (1 << (MECHANIC_DAZE - 1)))
break;
}