diff options
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 5b386c032..c182d2944 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -503,7 +503,7 @@ static int find_dive(struct divecomputer *match) { int i; - for (i = dive_table.preexisting - 1; i >= 0; i--) { + for (i = dive_table.nr - 1; i >= 0; i--) { struct dive *old = dive_table.dives[i]; if (match_one_dive(match, old)) |