- Fix loading skins that have cropped sprite_icons.png with no physical data for missing elements (e.g. the new targeting arrows). Will now return a fully transparent color instead of bailing out with a crash.

This commit is contained in:
Agetian
2014-02-16 04:12:48 +00:00
parent 255d508437
commit d841ed5858

View File

@@ -402,7 +402,7 @@ public enum FSkin {
x0 = tempCoords[0]; x0 = tempCoords[0];
y0 = tempCoords[1]; y0 = tempCoords[1];
color = FSkin.getColorFromPixel(bimPreferredSprite.getRGB(x0, y0)); color = bimPreferredSprite.getData().getBounds().contains(x0, y0) ? FSkin.getColorFromPixel(bimPreferredSprite.getRGB(x0, y0)) : new Color(0, 0, 0, 0);
} }
} }