X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=a9800d001ea0e97d9f504ef377ccd4211b9df238;hb=d45db9fac7b3d2ea0426a96158432f54d938f5c7;hp=3ed67fe3972f6d6d788279d1a2e7de0678a17046;hpb=1cc62d581158d52252f2ad7ef076811129510141;p=ext%2Fsubsurface.git diff --git a/save-xml.c b/save-xml.c index 3ed67fe..a9800d0 100644 --- a/save-xml.c +++ b/save-xml.c @@ -232,7 +232,7 @@ void save_dives(const char *filename) return; /* Flush any edits of current dives back to the dives! */ - update_dive(NULL); + update_dive(current_dive); fprintf(f, "\n\n", VERSION); for (i = 0; i < dive_table.nr; i++)