]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Sun, 8 Apr 2007 17:19:19 +0000 (17:19 +0000)
committerfrohlich <frohlich>
Sun, 8 Apr 2007 17:19:19 +0000 (17:19 +0000)
src/FDM/groundcache.cxx: Csaba Halász: use wires[i].ends[k] instead
of yet uninitialized end[k].

src/FDM/groundcache.cxx

index bbddb3f174707ad35af682bab70f582bfb7b861f..4424e5fdd65f68a80115a06529d7afe1e85e0517 100644 (file)
@@ -713,7 +713,7 @@ bool FGGroundCache::get_wire_ends(double t, SGVec3d end[2], SGVec3d vel[2])
   for (size_t i = 0; i < sz; ++i) {
     if (wires[i].wire_id == wire_id) {
       for (size_t k = 0; k < 2; ++k) {
-        SGVec3d pivotoff = end[k] - wires[i].rotation_pivot;
+        SGVec3d pivotoff = wires[i].ends[k] - wires[i].rotation_pivot;
         vel[k] = wires[i].velocity + cross(wires[i].rotation, pivotoff);
         end[k] = wires[i].ends[k] + t*vel[k];
       }