]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.c
Add completions to the dive location, buddy and divemaster entries
[ext/subsurface.git] / dive.c
diff --git a/dive.c b/dive.c
index 0341d09928cd4ef9ad9a974858a17c037db55a4c..b57205bc5ff096841cc0d0f3626265a650f9228f 100644 (file)
--- a/dive.c
+++ b/dive.c
@@ -240,6 +240,14 @@ struct dive *fixup_dive(struct dive *dive)
        update_temperature(&dive->watertemp, mintemp);
        update_depth(&dive->maxdepth, maxdepth);
 
+       add_people(dive->buddy);
+       add_people(dive->divemaster);
+       add_location(dive->location);
+       for (i = 0; i < MAX_CYLINDERS; i++) {
+               cylinder_type_t *type = &dive->cylinder[i].type;
+               add_cylinder_description(type);
+       }
+
        return dive;
 }