changeset 1417:36016db0d0b3

Oops, the check for maximum filename index was wrong.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Nov 2017 04:50:05 +0200
parents 3baed76155a1
children d8a509d72449
files tools/view64.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/view64.c	Sun Nov 05 04:47:13 2017 +0200
+++ b/tools/view64.c	Sun Nov 05 04:50:05 2017 +0200
@@ -356,7 +356,7 @@
                         break;
 
                     case SDLK_RIGHT:
-                        if (currIndex < noptFilenames2)
+                        if (currIndex < noptFilenames2 - 1)
                             currIndex++;
                         break;