1
0
Fork 0

Modified Files:

src/FDM/groundcache.cxx: Csaba Halász: use wires[i].ends[k] instead
	of yet uninitialized end[k].
This commit is contained in:
frohlich 2007-04-08 17:19:19 +00:00
parent f690bfd113
commit f9e288fce2

View 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) { for (size_t i = 0; i < sz; ++i) {
if (wires[i].wire_id == wire_id) { if (wires[i].wire_id == wire_id) {
for (size_t k = 0; k < 2; ++k) { 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); vel[k] = wires[i].velocity + cross(wires[i].rotation, pivotoff);
end[k] = wires[i].ends[k] + t*vel[k]; end[k] = wires[i].ends[k] + t*vel[k];
} }