]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/groundcache.cxx
Added two missing files from JSBSim.org that were missing in the last sync.
[flightgear.git] / src / FDM / groundcache.cxx
index e2414806c96da068a08caa6f6d0075d34c7c21d9..ad56fc90f94ad9c8f7a6a0ad35c8efa2a32ed71e 100644 (file)
@@ -474,11 +474,10 @@ public:
 
         if (_id == transform.getId()) {
             _foundId = true;
-            return;
+        } else {
+            transform.traverse(*this);
         }
         
-        transform.traverse(*this);
-        
         if (_foundId) {
             SGMatrixd toWorld = transform.getToWorldTransform(_time);
             SGVec3d referencePoint = _bodyToWorld.xformPt(SGVec3d::zeros());
@@ -541,9 +540,9 @@ FGGroundCache::get_body(double t, SGMatrixd& bodyToWorld, SGVec3d& linearVel,
 class FGGroundCache::CatapultFinder : public BVHVisitor {
 public:
     CatapultFinder(const SGSphered& sphere, const double& t) :
+        _haveLineSegment(false),
         _sphere(sphere),
-        _time(t),
-        _haveLineSegment(false)
+        _time(t)
     { }
     
     virtual void apply(BVHGroup& leaf)