diff options
Diffstat (limited to 'core/planner.c')
-rw-r--r-- | core/planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c index a5f0d36bc..8cadaca01 100644 --- a/core/planner.c +++ b/core/planner.c @@ -1074,7 +1074,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i // If no empty cylinder is found, keep using last deco gas cylinder_t cyl = empty_cylinder; cyl.cylinder_use = NOT_USED; - add_to_cylinder_table(&dive->cylinders, dive->cylinders.nr, cyl); + add_cylinder(&dive->cylinders, dive->cylinders.nr, cyl); current_cylinder = dive->cylinders.nr - 1; plan_add_segment(diveplan, prefs.surface_segment, 0, current_cylinder, 0, false, OC); } |