From 81fcde4d6740c9c463a20715f92d3a4ad5ab88c4 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 20 Apr 2013 11:17:21 +0200 Subject: Fix for "Ability to select the object in Vault" Issue #170 --- src/object/robotmain.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index df4deae..f64c30f 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -2710,6 +2710,8 @@ CObject* CRobotMain::DetectObject(Math::Point pos) if (obj == nullptr) break; if (!obj->GetActif()) continue; + CObject* truck = obj->GetTruck(); + if (truck != nullptr) if (!truck->GetActif()) continue; if (obj->GetProxyActivate()) continue; CObject* target = nullptr; -- cgit v1.2.3-1-g7c22