[10750] Convert Gameobject owner to objectguid use.

This commit is contained in:
VladimirMangos 2010-11-19 21:35:32 +03:00
parent 6154cb3b43
commit bbd34562a8
4 changed files with 9 additions and 9 deletions

View file

@ -2078,7 +2078,7 @@ bool WorldObject::IsControlledByPlayer() const
case TYPEID_PLAYER:
return ((Unit*)this)->IsCharmerOrOwnerPlayerOrPlayerItself();
case TYPEID_DYNAMICOBJECT:
return IS_PLAYER_GUID(((DynamicObject*)this)->GetCasterGUID());
return ((DynamicObject*)this)->GetCasterGuid().IsPlayer();
case TYPEID_CORPSE:
return true;
default: