From 0268d325d1a3dba8a6103ba60f795c99d5056e34 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 13 Nov 2016 04:06:52 +0100 Subject: [PATCH] fix more aiob --- src/yugecin/opsudance/ui/SBOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yugecin/opsudance/ui/SBOverlay.java b/src/yugecin/opsudance/ui/SBOverlay.java index 8f241205..b72823d4 100644 --- a/src/yugecin/opsudance/ui/SBOverlay.java +++ b/src/yugecin/opsudance/ui/SBOverlay.java @@ -152,7 +152,7 @@ public class SBOverlay { } private void goBackOneSBIndex() { - if (optionsMap[index + 1] != null) { + if (index + 1 < optionsMap.length && optionsMap[index + 1] != null) { // new options on previous index, so to revert then we have to reload them all to this point.. final int thisIndex = index; for (int i = 0; i <= thisIndex; i++) {