Core/Movement: Crash fix

This commit is contained in:
Spp-
2011-08-01 13:44:54 +02:00
parent f736c64836
commit 0457d98405

View File

@@ -77,9 +77,14 @@ MotionMaster::~MotionMaster()
void MotionMaster::UpdateMotion(uint32 diff)
{
if (!i_owner)
return;
if (i_owner->HasUnitState(UNIT_STAT_ROOT | UNIT_STAT_STUNNED)) // what about UNIT_STAT_DISTRACTED? Why is this not included?
return;
ASSERT(!empty());
m_cleanFlag |= MMCF_UPDATE;
if (!top()->Update(*i_owner, diff))
{