aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/dive.c')
-rw-r--r--core/dive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/dive.c b/core/dive.c
index 8bc66a655..351476bb8 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -336,6 +336,10 @@ void selective_copy_dive(const struct dive *s, struct dive *d, struct dive_compo
copy_cylinder_types(s, d);
if (what.weights)
copy_weights(&s->weightsystems, &d->weightsystems);
+ if (what.number)
+ d->number = s->number;
+ if (what.when)
+ d->when = s->when;
}
#undef CONDITIONAL_COPY_STRING