aboutsummaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 16152b195..785db4db5 100644
--- a/planner.c
+++ b/planner.c
@@ -575,7 +575,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
continue;
if (dp->time - lasttime < 10 && !(gaschange && dp->next && dp->depth != dp->next->depth))
continue;
- gasidx = get_gasidx(dive, &gasmix);
+
len = strlen(buffer);
if (nextdp && gasmix_distance(&gasmix, &newgasmix))
gaschange = true;