diff options
author | Giorgio Marzano <marzano.giorgio@gmail.com> | 2015-10-05 17:13:06 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-06 00:01:29 +0100 |
commit | c6eb747d0dccad002f63ab8aef0518e2dfe10a3e (patch) | |
tree | 19765314de145fe18b65c01875dd43310e46ffa7 /dive.c | |
parent | c378df81ab670206c376145b00d9e6694f3786ab (diff) | |
download | subsurface-c6eb747d0dccad002f63ab8aef0518e2dfe10a3e.tar.gz |
Fix wrong max depth value in split dives
Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2911,6 +2911,10 @@ static int split_dive_at(struct dive *dive, int a, int b) event->time.seconds -= t; } } + dc1->maxdepth.mm = 0; + dc2->maxdepth.mm = 0; + d1->maxdepth.mm = 0; + d2->maxdepth.mm = 0; fixup_dive(d1); fixup_dive(d2); |