Hi,

There is a bug ( at least for me with MSVC ) in Rotor.cpp related with the
usage of the % operator. In MSVC -1 % 4 == -1 not 3, so in the original line
below:

612c612
<       rps[i]->setlastnextrp(rps[(i-1)%4],rps[(i+1)%4],rps[(i+2)%4]);
---
>       rps[i]->setlastnextrp(rps[(i+3)%4],rps[(i+1)%4],rps[(i+2)%4]);

the programs gets rps[-1], that is not initialised and cause a segfault.

With that patch, when i==0, the first index is 3, FG starts quietly
and flying with this helo is *really* cool.

-Fred



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to