diff options
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -448,7 +448,7 @@ void copy_cylinders(struct dive *s, struct dive *d, bool used_only) if (!s || !d) return; for (i = 0; i < MAX_CYLINDERS; i++) - if (!used_only || cylinder_is_used(s, &s->cylinder[i])) + if (!used_only || is_cylinder_used(s, i)) d->cylinder[i] = s->cylinder[i]; else memset(&d->cylinder[i], 0, sizeof(cylinder_t)); |