Skip to content

Commit

Permalink
Fix issue broo2s#15 : Wrong Media count for duplicated media
Browse files Browse the repository at this point in the history
  • Loading branch information
dege88 committed Jul 14, 2013
1 parent d98e163 commit f93b586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/broot/ingress/mod/ModItemsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@ private void updateLabels() {
Button btn;
switch (type) {
case MEDIA:
int curr = media[lvl]++;
int curr = media[lvl];
if (curr == 0) {
buttonsByLvl.get(type).get(lvl).entity = items.getEntity();
}
media[lvl] += items.getCount();
continue;
case EMITTER_A:
case EMP_BURSTER:
Expand Down

0 comments on commit f93b586

Please sign in to comment.