diff options
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c index 7f946b039..f887cc82c 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -896,7 +896,7 @@ void add_dive_to_trip(struct dive *dive, dive_trip_t *trip) remove_dive_from_trip(dive, false); add_dive_to_table(&trip->dives, -1, dive); dive->divetrip = trip; - dive->tripflag = ASSIGNED_TRIP; + dive->tripflag = IN_TRIP; } dive_trip_t *alloc_trip(void) @@ -921,7 +921,6 @@ dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive) dive_trip = create_trip_from_dive(dive); insert_trip(dive_trip); - dive->tripflag = IN_TRIP; add_dive_to_trip(dive, dive_trip); return dive_trip; } |