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:
Dirk Hohndel 2014-07-05 07:49:06 -07:00
parent b0da8c2707
commit 9d97426e8e

View file

@ -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;
}
}