Skip to content

Commit

Permalink
Fixed controll flow warning in SubZoneArrivalTime
Browse files Browse the repository at this point in the history
  • Loading branch information
SpookyScaryDev committed Sep 16, 2024
1 parent bbe2e60 commit c9be1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/route_lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ float SubZoneArrivalTime(float zone_time, gedict_t *middle_marker, gedict_t *fro
{
return (zone_time + middle_marker->fb.subzones[from_marker->fb.S_].hook_time);
}
if (rl_routes)
else if (rl_routes)
{
return (zone_time + middle_marker->fb.subzones[from_marker->fb.S_].rj_time);
}
if (!rl_routes && !hook_routes)
else
{
return (zone_time + middle_marker->fb.subzones[from_marker->fb.S_].time);
}
Expand Down

0 comments on commit c9be1bf

Please sign in to comment.