summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/planner.c b/planner.c
index e77fdb995..f58eec537 100644
--- a/planner.c
+++ b/planner.c
@@ -130,7 +130,7 @@ int time_at_last_depth(struct dive *dive, int next_stop, char **cached_data_p)
if (!dive)
return 0;
- surface_pressure = dive->surface_pressure.mbar / 1000.0;
+ surface_pressure = dive->dc.surface_pressure.mbar / 1000.0;
tissue_tolerance = tissue_at_end(dive, cached_data_p);
sample = &dive->dc.sample[dive->dc.samples - 1];
depth = sample->depth.mm;
@@ -184,7 +184,7 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan)
#endif
dive = alloc_dive();
dive->when = diveplan->when;
- dive->surface_pressure.mbar = diveplan->surface_pressure;
+ dive->dc.surface_pressure.mbar = diveplan->surface_pressure;
dc = &dive->dc;
dc->model = strdup("Simulated Dive");
dp = diveplan->dp;