- Fixed getMostProminentColors.

This commit is contained in:
Sloth
2013-05-08 21:08:12 +00:00
parent cfc432dc16
commit e3815b20aa

View File

@@ -1895,6 +1895,9 @@ public class CardFactoryUtil {
public static byte getMostProminentColors(final List<Card> list) { public static byte getMostProminentColors(final List<Card> list) {
int cntColors = MagicColor.WUBRG.length; int cntColors = MagicColor.WUBRG.length;
final Integer[] map = new Integer[cntColors]; final Integer[] map = new Integer[cntColors];
for(int i = 0; i < cntColors; i++) {
map[i] = 0;
}
for (final Card crd : list) { for (final Card crd : list) {
ColorSet color = CardUtil.getColors(crd); ColorSet color = CardUtil.getColors(crd);