mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Reset some more values in split_dive_at()
Otherwise fixup_dive() won't update them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c6eb747d0d
commit
c50fc04a82
1 changed files with 8 additions and 0 deletions
8
dive.c
8
dive.c
|
@ -2915,6 +2915,14 @@ static int split_dive_at(struct dive *dive, int a, int b)
|
|||
dc2->maxdepth.mm = 0;
|
||||
d1->maxdepth.mm = 0;
|
||||
d2->maxdepth.mm = 0;
|
||||
d1->duration.seconds = 0;
|
||||
d2->duration.seconds = 0;
|
||||
d1->watertemp.mkelvin = 0;
|
||||
d2->watertemp.mkelvin = 0;
|
||||
d1->maxtemp.mkelvin = 0;
|
||||
d2->maxtemp.mkelvin = 0;
|
||||
d1->mintemp.mkelvin = 0;
|
||||
d2->mintemp.mkelvin = 0;
|
||||
|
||||
fixup_dive(d1);
|
||||
fixup_dive(d2);
|
||||
|
|
Loading…
Add table
Reference in a new issue