}
if (cooked) {
- if (state_start < apogee) {
+ if (state < ao_flight_drogue) {
speed_i = cc_perioddata_max(&cooked->accel_speed, state_start, state_stop);
if (speed_i >= 0)
speed = cooked->accel_speed.data[speed_i];
}
}
if (detail_name) {
- if (!strcmp (summary_name, detail_name))
+ if (summary_name && !strcmp (summary_name, detail_name))
detail_file = summary_file;
else {
detail_file = fopen(detail_name, "w");