]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.c
Fill the list of weightsystems from data in existing dives
[ext/subsurface.git] / dive.c
diff --git a/dive.c b/dive.c
index 9f57aed58146554969901198ac761fc888904e18..57a735c8e72d2969cf7469c5969373cc94d4b0fc 100644 (file)
--- a/dive.c
+++ b/dive.c
@@ -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;
 }