diff options
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c index 0a23f9022..b9d2c3b95 100644 --- a/statistics.c +++ b/statistics.c @@ -151,7 +151,7 @@ void process_selected_dives(void) memset(&stats_selection, 0, sizeof(stats_selection)); nr = 0; - for (i = 0; (dive = get_dive(i)) != NULL; ++i) { + for_each_dive(i, dive) { if (dive->selected) { process_dive(dive, &stats_selection); nr++; |