X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fmidi2cfg-ng.pl;fp=misc%2Ftools%2Fmidi2cfg-ng.pl;h=ad06b746807b931b671d7a59cd148cb38f0cd8dc;hp=4fe6a0cecb8b47a73a74b4c4f6e48ca8d359bdac;hb=075250227575af7127abb3f885a6b0bf60b51d8f;hpb=d21c1e8d156cff9179a5c14e46b64597134e5937 diff --git a/misc/tools/midi2cfg-ng.pl b/misc/tools/midi2cfg-ng.pl index 4fe6a0ce..ad06b746 100755 --- a/misc/tools/midi2cfg-ng.pl +++ b/misc/tools/midi2cfg-ng.pl @@ -857,7 +857,7 @@ sub ConvertMIDI($$) my $votehigh = 0; my $votelow = 0; my $votegood = 0; - for(@busybots_allocated) + for(@busybots_allocated, grep { $_->{count} > 0 } values %$busybots) { next # I won't play on this channel if defined $_->{channels} and not $_->{channels}->{$channel};