From 7bd3c22b8a4fe5ca7eafb504a23314defb8d6ffe Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 13 Nov 2016 00:27:38 +0100 Subject: [PATCH] prevent aiobe --- src/yugecin/opsudance/ui/SBOverlay.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yugecin/opsudance/ui/SBOverlay.java b/src/yugecin/opsudance/ui/SBOverlay.java index 2a5410f7..4e4c49b3 100644 --- a/src/yugecin/opsudance/ui/SBOverlay.java +++ b/src/yugecin/opsudance/ui/SBOverlay.java @@ -174,6 +174,9 @@ public class SBOverlay { public void updateIndex(int index) { this.index = index; + if (index >= optionsMap.length) { + return; + } HashMap options = optionsMap[index]; if (options != null) { for (Object o : options.entrySet()) {