diff options
Diffstat (limited to 'core/import-cobalt.c')
-rw-r--r-- | core/import-cobalt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/import-cobalt.c b/core/import-cobalt.c index 967f7df51..28f6968a3 100644 --- a/core/import-cobalt.c +++ b/core/import-cobalt.c @@ -39,8 +39,7 @@ static int cobalt_cylinders(void *param, int columns, char **data, char **column struct parser_state *state = (struct parser_state *)param; cylinder_t *cyl; - cylinder_start(state); - cyl = &state->cur_dive->cylinders.cylinders[state->cur_dive->cylinders.nr - 1]; + cyl = cylinder_start(state); if (data[0]) cyl->gasmix.o2.permille = atoi(data[0]) * 10; if (data[1]) |