mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix invalid bailout gas choice when planning a CCR dive.
Fixes a bug reported in https://groups.google.com/g/subsurface-divelog/c/8N3cTz2Zv5E: When planning a CCR dive with OC bailout, the diluent gas may be chosen as the first OC bailout gas, despite being set up with a use type of 'diluent', and likely not being available for open circuit breathing. `best_first_ascend_cylinder` is now initialised to an invalid value (instead of the first cylinder, which may or may not be a diluent cylinder), and its subsequent use is guarded by a validity check. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
eb5d4f2a15
commit
ec0c6833a0
4 changed files with 91 additions and 9 deletions
|
|
@ -19,6 +19,7 @@ private slots:
|
|||
void testVpmbMetric100m10min();
|
||||
void testVpmbMetricRepeat();
|
||||
void testMultipleGases();
|
||||
void testCcrBailoutGasSelection();
|
||||
};
|
||||
|
||||
#endif // TESTPLAN_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue