From 9d97426e8e0140b8762d2dd0e018a9b708fcf7df Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 5 Jul 2014 07:49:06 -0700 Subject: Planner: reset deco gas used member Otherwise every recalculation will continue to incorrectly increase the deco gas used value. Fixes #598 Signed-off-by: Dirk Hohndel --- equipment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/equipment.c b/equipment.c index 438bca02a..66427324e 100644 --- a/equipment.c +++ b/equipment.c @@ -246,5 +246,6 @@ void reset_cylinders(struct dive *dive, bool track_gas) if (track_gas && cyl->type.workingpressure.mbar) cyl->start.mbar = cyl->end.mbar = cyl->type.workingpressure.mbar; cyl->gas_used.mliter = 0; + cyl->deco_gas_used.mliter = 0; } } -- cgit v1.2.3-70-g09d2