summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-10 09:08:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-10 09:08:51 -0700
commitecb5f4c792c51ffb34c0f8cfda12fd772d0f05f7 (patch)
tree4213fabd7fee2ca0bb799dcea8f22bed1b5f737c /planner.c
parent8a0d852a7c17643bd6d45751c8b7489c23699829 (diff)
downloadsubsurface-ecb5f4c792c51ffb34c0f8cfda12fd772d0f05f7.tar.gz
Planner: use the actual setting for GF low at max depth
Using the default_prefs value makes no sense. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index c34b59ac5..5dcc0468e 100644
--- a/planner.c
+++ b/planner.c
@@ -697,7 +697,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, s
int best_first_ascend_cylinder;
struct gasmix gas;
- set_gf(diveplan->gflow, diveplan->gfhigh, default_prefs.gf_low_at_maxdepth);
+ set_gf(diveplan->gflow, diveplan->gfhigh, prefs.gf_low_at_maxdepth);
if (!diveplan->surface_pressure)
diveplan->surface_pressure = SURFACE_PRESSURE;
if (*divep)