mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b0da8c2707
commit
9d97426e8e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue