summaryrefslogtreecommitdiffstats
path: root/core/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/parse.c')
-rw-r--r--core/parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/parse.c b/core/parse.c
index 8a07ba818..30d6a8ad5 100644
--- a/core/parse.c
+++ b/core/parse.c
@@ -289,8 +289,7 @@ void picture_end(struct parser_state *state)
cylinder_t *cylinder_start(struct parser_state *state)
{
- add_empty_cylinder(&state->cur_dive->cylinders);
- return &state->cur_dive->cylinders.cylinders[state->cur_dive->cylinders.nr - 1];
+ return add_empty_cylinder(&state->cur_dive->cylinders);
}
void cylinder_end(struct parser_state *state)