summaryrefslogtreecommitdiffstats
path: root/subsurface-core/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/dive.c')
-rw-r--r--subsurface-core/dive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-core/dive.c b/subsurface-core/dive.c
index 8c69e9a6a..e06a25fa4 100644
--- a/subsurface-core/dive.c
+++ b/subsurface-core/dive.c
@@ -1155,6 +1155,8 @@ static void fixup_water_salinity(struct dive *dive)
for_each_dc (dive, dc) {
if (dc->salinity) {
+ if (dc->salinity < 500)
+ dc->salinity += FRESHWATER_SALINITY;
sum += dc->salinity;
nr++;
}