]> git.tdb.fi Git - ext/subsurface.git/blobdiff - parse-xml.c
Fix an issue with trips that have dives from multiple input files
[ext/subsurface.git] / parse-xml.c
index 00538dad93a07f5dc15897a7467eb5b86c5b2a4b..b70f154449975571541f95572c404aed6dff30c6 100644 (file)
@@ -41,7 +41,7 @@ void record_dive(struct dive *dive)
 
 void record_trip(struct dive *trip)
 {
-       dive_trip_list = INSERT_TRIP(trip, dive_trip_list);
+       dive_trip_list = insert_trip(trip, dive_trip_list);
 }
 
 static void delete_dive_renumber(struct dive **dives, int i, int nr)