fix sboverlay showcondition

This commit is contained in:
yugecin 2016-12-04 14:05:18 +01:00
parent 7459dd66d0
commit 22146e1ac6

View File

@ -104,8 +104,7 @@ public class OptionsOverlay {
if (!options[i].showCondition()) { if (!options[i].showCondition()) {
continue; continue;
} }
j++; drawOption(g, options[i], j++, selectedOption == null ? hoverIdx == i : selectedOption == options[i]);
drawOption(g, options[j], j, selectedOption == null ? hoverIdx == j : selectedOption == options[j]);
} }
if (list.isVisible()) { if (list.isVisible()) {
list.render(container, game, g); list.render(container, game, g);