X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=dive.c;h=ed3908928a97c3c7ddfabb7c12d003de4b6f2349;hb=b74cc4f523841729a9a7eaec3d29252e740a259d;hp=9edf36c9183998d9eef986598ec6bb5fa845cfd8;hpb=f9cb526c969488e6a12d7fe2baf4a71417521460;p=ext%2Fsubsurface.git diff --git a/dive.c b/dive.c index 9edf36c..ed39089 100644 --- a/dive.c +++ b/dive.c @@ -26,6 +26,7 @@ void add_event(struct dive *dive, int time, int type, int flags, int value, cons while (*p) p = &(*p)->next; *p = ev; + remember_event(name); } double get_depth_units(unsigned int mm, int *frac, const char **units) @@ -240,6 +241,9 @@ 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);