summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'info.c')
-rw-r--r--info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/info.c b/info.c
index 242e4b24d..8db606344 100644
--- a/info.c
+++ b/info.c
@@ -519,7 +519,7 @@ int edit_multi_dive_info(struct dive *single_dive)
int i;
struct dive *dive;
- for (i = 0; (dive = get_dive(i)) != NULL; i++) {
+ for_each_dive(i, dive) {
if (dive == master || !dive->selected)
continue;
/* copy all "info" fields */