diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2018-04-05 12:02:25 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-14 23:47:00 +0300 |
commit | c1d04ef7dcbbe34eccf4515a59063ed807e8d5e5 (patch) | |
tree | 0618789b6ed6e1abdc40dc0eb2d79c52cb5bffac /core/dive.c | |
parent | 27a0542220ae3766f0a98058c28e86d6c6d43a62 (diff) | |
download | subsurface-c1d04ef7dcbbe34eccf4515a59063ed807e8d5e5.tar.gz |
Simplify bailout events in the dive log
I removed the special event type that has been used for bailout events.
Bailout events are now just bookmarks with a specific name "e.g. OC,
CCR, PSCR). This removes a case where a segmentation error occurred
when trying to remove a bailout event from the dive profile.
Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c index 66f05b0b3..f296a8486 100644 --- a/core/dive.c +++ b/core/dive.c @@ -250,7 +250,6 @@ struct event *get_next_divemodechange(struct event **evd) while (ev) { // Step through the events. for (int i=0; i<3; i++) { // For each event name search for one of the above strings if (!strcmp(ev->name,divemode_text[i])) { // if the event name is one of the divemode names - ev->type = DIVEMODECHANGE_EVENTTYPE + i; ev->divemode = i; // set the event type to the dive mode *evd = ev->next; return (ev); |