summaryrefslogtreecommitdiffstats
path: root/core/plannernotes.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/plannernotes.c')
-rw-r--r--core/plannernotes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c
index 99f456393..e7a09d96d 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -451,6 +451,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
char warning[1000] = "";
char mingas[1000] = "";
cylinder_t *cyl = &dive->cylinder[gasidx];
+ if (cyl->cylinder_use == NOT_USED)
+ continue;
if (cylinder_none(cyl))
break;