summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--theme/list_lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 2b5931dab..7204746b8 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -1054,7 +1054,7 @@ function unshowDiveDetails(dive)
function nextDetailedDive()
{
- if (dive_id < items.length) {
+ if (dive_id < items.length - 1) {
showDiveDetails(++dive_id);
}
}