diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-17 17:19:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-17 08:28:21 -0700 |
commit | 950638ec1c560083cbf7c49fc0a5e6139560cc85 (patch) | |
tree | a98979ed5a7b8386db6c939ae8f3d5a75c8432ef /divelist.c | |
parent | 810880ea1d435e273d2f9b7c2292f3eb6134b1f1 (diff) | |
download | subsurface-950638ec1c560083cbf7c49fc0a5e6139560cc85.tar.gz |
Replace cylinder_is_used with is_cylinder_used
is_cylinder_used uses get_cylinder_index as underlaying function that
does the right thing with with respect on how to find the closest
matching cylinder, and handles both types of gaschange events correctly.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c index 1a2111f76..c9e5aebf7 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 (!is_cylinder_used(dive, i)) continue; if (cylinder_none(cyl)) continue; |