diff --git a/src/yugecin/opsudance/ui/OptionsOverlay.java b/src/yugecin/opsudance/ui/OptionsOverlay.java index 7a2bd82c..f1db2c11 100644 --- a/src/yugecin/opsudance/ui/OptionsOverlay.java +++ b/src/yugecin/opsudance/ui/OptionsOverlay.java @@ -134,7 +134,7 @@ public class OptionsOverlay { return true; } int idx = getOptionIdxAt(y); - if (idx < options.length) { + if (idx >= 0 && idx < options.length) { final Options.GameOption option = options[idx]; selectedOption = option; Object[] listItems = option.getListItems();