diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-24 09:03:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-24 09:03:56 -0700 |
commit | f29f41ae9ea8b9c6217feab2cd97b165af843c2a (patch) | |
tree | 342534b9b0f6cd883f39386bce476a233f43b69f /planner.c | |
parent | 95466cb245608a92d3e6005f2da577a613914336 (diff) | |
download | subsurface-f29f41ae9ea8b9c6217feab2cd97b165af843c2a.tar.gz |
Planner: fix start time handling
We setup the startTime for the dive plan in too many places... but never
actually copied it into the planned dive.
Fixes #640
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -262,6 +262,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas) // displayed dive so we can restart reset_cylinders(&displayed_dive, track_gas); dc = &displayed_dive.dc; + dc->when = displayed_dive.when = diveplan->when; free(dc->sample); dc->sample = NULL; dc->samples = 0; |