diff options
author | krzys-h <krzys_h@interia.pl> | 2013-04-20 11:17:21 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-04-20 11:17:21 +0200 |
commit | 81fcde4d6740c9c463a20715f92d3a4ad5ab88c4 (patch) | |
tree | 5a19ebbaba39f02a365df29cccf481901bb32d62 /src/object/robotmain.cpp | |
parent | ec688021362f1cc470815b3f1483e19e0c754e23 (diff) | |
download | colobot-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/object/robotmain.cpp')
-rw-r--r-- | src/object/robotmain.cpp | 2 |
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; |