summaryrefslogtreecommitdiff
path: root/util/jsgen.pl
diff options
context:
space:
mode:
Diffstat (limited to 'util/jsgen.pl')
-rwxr-xr-xutil/jsgen.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl
index 8317f86f..828d090f 100755
--- a/util/jsgen.pl
+++ b/util/jsgen.pl
@@ -18,8 +18,8 @@ sub resolutions {
my $cat = '';
my @r;
my $push = \@r;
- for my $i (0..$#{$S{resolutions}}) {
- my $r = $S{resolutions}[$i];
+ for my $i (keys %{$S{resolutions}}) {
+ my $r = $S{resolutions}{$i};
if($cat ne $r->[1]) {
push @r, [$r->[1]];
$cat = $r->[1];