- int s=t;
- if(s>=8) //FIXME
- s=7;
- gradient1->ratios[t] = swf_GetU8(tag);
- swf_GetRGBA(tag, &gradient1->rgba[t]);
- gradient2->ratios[t] = swf_GetU8(tag);
- swf_GetRGBA(tag, &gradient2->rgba[t]);
+ U8 ratio;
+ RGBA color;
+
+ ratio = swf_GetU8(tag);
+ swf_GetRGBA(tag, &color);
+ if(gradient1) {
+ gradient1->ratios[t] = ratio;
+ gradient1->rgba[t] = color;
+ }
+
+ ratio = swf_GetU8(tag);
+ swf_GetRGBA(tag, &color);
+ if(gradient2) {
+ gradient2->ratios[t] = ratio;
+ gradient2->rgba[t] = color;
+ }