From ee7dd4307a442148598299db1152461b6cbf8270 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 17 Nov 2014 00:09:19 +0000 Subject: [PATCH] In a CCR dive the diluent and oxygen cylinders are both used Signed-off-by: Dirk Hohndel --- statistics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/statistics.c b/statistics.c index 9eb029115..96d6a65f2 100644 --- a/statistics.c +++ b/statistics.c @@ -308,6 +308,8 @@ 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)) + return true; } if (idx == 0 && !firstGasExplicit) return true;