diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-08-06 14:03:24 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-08-06 14:03:24 -0700 |
commit | 39f606350b6025cb7c5cf9e657d7ef092eb026d7 (patch) | |
tree | aaf8d6a03cbb7769eb694d579b82fc6a191888cd /dive.c | |
parent | 4912951e97b4040941944e1df70a91366a6a5559 (diff) | |
download | subsurface-39f606350b6025cb7c5cf9e657d7ef092eb026d7.tar.gz |
Fill the list of weightsystems from data in existing dives
This was simply an omission in the current implementation. All the
plumbing was there but never got hooked up with the fixup_dive function as
intended.
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
@@ -472,6 +472,10 @@ struct dive *fixup_dive(struct dive *dive) if (same_rounded_pressure(cyl->sample_end, cyl->end)) cyl->end.mbar = 0; } + for (i = 0; i < MAX_WEIGHTSYSTEMS; i++) { + weightsystem_t *ws = dive->weightsystem + i; + add_weightsystem_description(ws); + } return dive; } |