summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
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 2abeac9ca..1e279efca 100644
--- a/divelist.c
+++ b/divelist.c
@@ -153,7 +153,7 @@ int total_weight(struct dive *dive)
static int active_o2(struct dive *dive, struct divecomputer *dc, duration_t time)
{
- struct gasmix gas = dive->cylinder[0].gasmix;
+ struct gasmix gas;
get_gas_at_time(dive, dc, time, &gas);
return get_o2(&gas);
}