X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=a9800d001ea0e97d9f504ef377ccd4211b9df238;hb=d5b7f7dc06827cab8dd57d6d373a08d6be111c79;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++)