summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-04-20 11:17:21 +0200
committerkrzys-h <krzys_h@interia.pl>2013-04-20 11:17:21 +0200
commit81fcde4d6740c9c463a20715f92d3a4ad5ab88c4 (patch)
tree5a19ebbaba39f02a365df29cccf481901bb32d62 /src
parentec688021362f1cc470815b3f1483e19e0c754e23 (diff)
downloadcolobot-81fcde4d6740c9c463a20715f92d3a4ad5ab88c4.tar.gz
colobot-81fcde4d6740c9c463a20715f92d3a4ad5ab88c4.tar.bz2
colobot-81fcde4d6740c9c463a20715f92d3a4ad5ab88c4.zip
Fix for "Ability to select the object in Vault"
Issue #170
Diffstat (limited to 'src')
-rw-r--r--src/object/robotmain.cpp2
1 files changed, 2 insertions, 0 deletions
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;