summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/planner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/planner.c b/core/planner.c
index 8a2e1d649..601aac767 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -271,6 +271,8 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas)
reset_cylinders(&displayed_dive, track_gas);
dc = &displayed_dive.dc;
dc->when = displayed_dive.when = diveplan->when;
+ dc->surface_pressure.mbar = diveplan->surface_pressure;
+ dc->salinity = diveplan->salinity;
free(dc->sample);
dc->sample = NULL;
dc->samples = 0;