summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/save-xml.c b/save-xml.c
index e47092ebc..3ed67fe39 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -206,8 +206,8 @@ static void save_dive(FILE *f, struct dive *dive)
struct tm *tm = gmtime(&dive->when);
fputs("<dive", f);
- if (dive->nr)
- fprintf(f, " nr='%d'", dive->nr);
+ if (dive->number)
+ fprintf(f, " number='%d'", dive->number);
fprintf(f, " date='%04u-%02u-%02u'",
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday);
fprintf(f, " time='%02u:%02u:%02u'",