summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index cd97a6ee9..50a490c80 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -596,9 +596,7 @@ void save_dives_buffer(struct membuffer *b, const bool select_only, bool anonymi
put_format(b, "<divesites>\n");
for (i = 0; i < dive_site_table.nr; i++) {
struct dive_site *ds = get_dive_site(i, &dive_site_table);
- /* Only write used dive sites */
- if (!is_dive_site_used(ds, false))
- continue;
+ /* Only write used dive sites when exporting selected dives */
if (select_only && !is_dive_site_used(ds, true))
continue;