File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
engine/src/main/java/org/destinationsol/ui/nui/screens Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -304,13 +304,12 @@ public void setSelected(List<SolItem> itemGroup) {
304304 ItemContainer items = inventoryOperations .getItems (solApplication .getGame ());
305305 if (!items .containsGroup (itemGroup )) {
306306 selectedIndex = 0 ;
307- return ;
308- }
309-
310- for (int groupNo = 0 ; groupNo < items .groupCount (); groupNo ++) {
311- if (items .getGroup (groupNo ) == itemGroup ) {
312- page = groupNo / Const .ITEM_GROUPS_PER_PAGE ;
313- selectedIndex = groupNo % Const .ITEM_GROUPS_PER_PAGE ;
307+ } else {
308+ for (int groupNo = 0 ; groupNo < items .groupCount (); groupNo ++) {
309+ if (items .getGroup (groupNo ) == itemGroup ) {
310+ page = groupNo / Const .ITEM_GROUPS_PER_PAGE ;
311+ selectedIndex = groupNo % Const .ITEM_GROUPS_PER_PAGE ;
312+ }
314313 }
315314 }
316315
You can’t perform that action at this time.
0 commit comments