summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-04 08:50:47 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-04 08:52:28 -0700
commitcbdf3ee0420eca86c3df3f9e6460ae10017f4487 (patch)
treeb80922805de141e72c4841dbd2d0dac727eada48 /divelist.c
parent5bc5cae6dcdb6a48bb5077d01e490bebedc624d9 (diff)
downloadsubsurface-cbdf3ee0420eca86c3df3f9e6460ae10017f4487.tar.gz
Fix typo that broke gas reporting in dive list
The brainless idiot who implemented commit c539c8f86192 ("Remove the .used member of the cylinder structure") clearly worked on the basis of "it compiles, it must be perfect". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c
index c018bbdc7..decc07aa4 100644
--- a/divelist.c
+++ b/divelist.c
@@ -116,7 +116,7 @@ void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p)
int o2 = get_o2(&cyl->gasmix);
int he = get_he(&cyl->gasmix);
- if (cylinder_is_used(dive, cyl))
+ if (!cylinder_is_used(dive, cyl))
continue;
if (cylinder_none(cyl))
continue;