summaryrefslogtreecommitdiffstats
path: root/statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'statistics.c')
-rw-r--r--statistics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c
index 96d6a65f2..bca9e6540 100644
--- a/statistics.c
+++ b/statistics.c
@@ -308,7 +308,7 @@ bool is_cylinder_used(struct dive *dive, int idx)
return true;
event = get_next_event(event->next, "gaschange");
}
- if (dc->dctype == CCR && (idx == dive->diluent_cylinder_index || idx == dive->oxygen_cylinder_index))
+ if (dc->divemode == CCR && (idx == dive->diluent_cylinder_index || idx == dive->oxygen_cylinder_index))
return true;
}
if (idx == 0 && !firstGasExplicit)