diff tools/view64.c @ 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 1e4fb7c5527f
children 9b7915193683
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;