summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c
index fd4ed2c36..d488413c8 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -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 {