aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-05 07:49:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-05 07:49:06 -0700
commit9d97426e8e0140b8762d2dd0e018a9b708fcf7df (patch)
tree975813adeffa42532b39f81abc365af7f02bf960
parentb0da8c2707366234a6971cbfbfd4475e8cb90c0e (diff)
downloadsubsurface-9d97426e8e0140b8762d2dd0e018a9b708fcf7df.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--equipment.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}