From: <csa...@gm...> - 2007-06-26 01:09:17
|
Hi! Helijah has run into a crash. Gdb backtrace here: http://pastebin.ca/589461 (no debug symbols unfortunately) Looks like the "next" waypoint is null. As a quick and dirty fix I came up with this: Index: src/AIModel/AIAircraft.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/AIModel/AIAircraft.cxx,v retrieving revision 1.65 diff -u -r1.65 AIAircraft.cxx --- src/AIModel/AIAircraft.cxx 16 Jun 2007 05:38:05 -0000 1.65 +++ src/AIModel/AIAircraft.cxx 26 Jun 2007 01:07:16 -0000 @@ -747,7 +747,7 @@ if (fabs(speed_diff) > 10) { prevSpeed = speed; - fp->setLeadDistance(speed, tgt_heading, curr, next); + if (next) fp->setLeadDistance(speed, tgt_heading, curr, next); } } This is probably not the right way to fix it, somebody please have a look. Thanks, Csaba |