diff options
Diffstat (limited to 'core/parse.c')
-rw-r--r-- | core/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/parse.c b/core/parse.c index dd8c612e8..8a07ba818 100644 --- a/core/parse.c +++ b/core/parse.c @@ -287,9 +287,10 @@ void picture_end(struct parser_state *state) state->cur_picture = NULL; } -void cylinder_start(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]; } void cylinder_end(struct parser_state *state) |