diff options
Diffstat (limited to 'core/save-xml.c')
-rw-r--r-- | core/save-xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/save-xml.c b/core/save-xml.c index e49e186f4..cae18f8c7 100644 --- a/core/save-xml.c +++ b/core/save-xml.c @@ -637,8 +637,8 @@ void save_dives_buffer(struct membuffer *b, const bool select_only, bool anonymi put_format(b, "</site>\n"); } put_format(b, "</divesites>\n<dives>\n"); - for (trip = dive_trip_list; trip != NULL; trip = trip->next) - trip->saved = 0; + for (i = 0; i < trip_table.nr; ++i) + trip_table.trips[i]->saved = 0; /* save the dives */ for_each_dive(i, dive) { |