Skip to content

Commit

Permalink
Clarified for loop increment
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 13, 2019
1 parent 05d98b5 commit 6eb6008
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,14 @@ private void build()

int slot = 10;

for (int stringIndex = 0; stringIndex < this.value.size() && slot < 36; stringIndex++)
for (int stringIndex = 0; stringIndex < this.value.size() && slot < 36; stringIndex++, slot++)
{
if (!panelBuilder.slotOccupied(slot))
{
panelBuilder.item(slot,
this.createStringElement(this.value.get(stringIndex), stringIndex));
}

slot++;
}

panelBuilder.build();
Expand Down

0 comments on commit 6eb6008

Please sign in to comment.