summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 23:09:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 23:09:12 -0700
commit5bc5cae6dcdb6a48bb5077d01e490bebedc624d9 (patch)
tree69323c0f826995c45558937d062e3f0a2d369527 /planner.c
parent88f39912603f9ce3d7c799b65580ee30e5ccb364 (diff)
downloadsubsurface-5bc5cae6dcdb6a48bb5077d01e490bebedc624d9.tar.gz
Planner: only copy cylinders that were used in the template dive
This was only semi-implemented the first time around. Now we really only copy the ones that are indeed used. 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 2c1c66810..2306294b0 100644
--- a/planner.c
+++ b/planner.c
@@ -256,7 +256,7 @@ static struct dive *create_dive_from_plan(struct diveplan *diveplan, struct dive
dc = &dive->dc;
dc->model = "planned dive"; /* do not translate here ! */
dp = diveplan->dp;
- copy_cylinders(master_dive, dive);
+ copy_cylinders(master_dive, dive, false);
/* reset the end pressure values and start with the gas on the first cylinder */
reset_cylinders(master_dive);