X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=a9800d001ea0e97d9f504ef377ccd4211b9df238;hb=0c4e1697db2d9e15a05bc76056fca13e9ccb9ba4;hp=3ed67fe3972f6d6d788279d1a2e7de0678a17046;hpb=61d0aa10e1a88ac2e5ddcab9e0f05a729b3ab9e9;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++)