From e1f0c0f91f7916f7910cf2177405bf726d67c42c Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 19 Aug 2015 20:56:04 +0200 Subject: [PATCH] Fixed #585 --- src/ui/controls/target.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/controls/target.cpp b/src/ui/controls/target.cpp index 22b95eb4..544b7559 100644 --- a/src/ui/controls/target.cpp +++ b/src/ui/controls/target.cpp @@ -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 ; jGetObjectRank(j);