Fixed my silly mistake, thx Machiavelli

This commit is contained in:
Shauren
2011-05-07 22:40:02 +02:00
parent 8cc4125664
commit 27c419a8fe
+1 -1
View File
@@ -16198,7 +16198,7 @@ void Unit::KnockbackFrom(float x, float y, float speedXY, float speedZ)
Player *player = NULL; Player *player = NULL;
if (GetTypeId() == TYPEID_PLAYER) if (GetTypeId() == TYPEID_PLAYER)
player = (Player*)this; player = (Player*)this;
else else if (GetCharmer())
{ {
player = GetCharmer()->ToPlayer(); player = GetCharmer()->ToPlayer();
if (player && player->m_mover != this) if (player && player->m_mover != this)