master
krzys-h 2015-08-19 20:56:04 +02:00
parent 14396847d6
commit e1f0c0f91f
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ CObject* CTarget::DetectFriendObject(Math::Point pos)
target = obj;
}
if (!target->Implements(ObjectInterfaceType::Old)) continue; // TODO: To be removed after COldObjectInterface is gone
for (int j=0 ; j<OBJECTMAXPART ; j++ )
{
int rank = obj->GetObjectRank(j);