Analyze gasswitches in CCR bailout

The test if we have to create gas switches wasn't yet aware
of the bailout option.

Reported-by: Dennis Arreborg <dennis@arreborg.eu>
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2019-09-30 07:53:05 +02:00 committed by Dirk Hohndel
parent e7e21aec6b
commit 85c31f0303

View file

@ -757,7 +757,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i
best_first_ascend_cylinder = current_cylinder;
/* Find the gases available for deco */
if (po2) { // Don't change gas in CCR mode
if (divemode == CCR && !prefs.dobailout) { // Don't change gas in CCR mode
gaschanges = NULL;
gaschangenr = 0;
} else {