Did what xoft said

This commit is contained in:
tonibm19
2014-01-29 20:02:41 +01:00
parent 1c1832b6ce
commit e9c1d1ea9c
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ void cPassiveMonster::Tick(float a_Dt, cChunk & a_Chunk)
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
if (a_Closest_Player != NULL)
{
if (a_Closest_Player->GetEquippedItem().m_ItemType == FollowedItem.m_ItemType)
if (a_Closest_Player->GetEquippedItem().IsEqual(FollowedItem))
{
Vector3d PlayerPos = a_Closest_Player->GetPosition();
MoveToPosition(PlayerPos);