|
@@ -246,7 +246,7 @@ public class SkeletonJson {
|
|
|
static private function toColor (hexString:String, colorIndex:int) : Number {
|
|
|
if (hexString.length != 8)
|
|
|
throw new ArgumentError("Color hexidecimal length must be 8, recieved: " + hexString);
|
|
|
- return parseInt(hexString.substring(colorIndex * 2, 2), 16) / 255;
|
|
|
+ return parseInt(hexString.substring(colorIndex * 2, colorIndex * 2 + 2), 16) / 255;
|
|
|
}
|
|
|
}
|
|
|
|