OSDN Git Service

コピペで(引数の)変数名が衝突していたのを修正
authorYoshihiro Yamazaki <yoya@awm.jp>
Fri, 7 Dec 2012 17:11:22 +0000 (02:11 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Fri, 7 Dec 2012 17:11:22 +0000 (02:11 +0900)
src/swf/tag/definesprite.js

index 982a570..474c47c 100644 (file)
@@ -19,15 +19,15 @@ FlappSWFTagDefineSprite = function(code, length, ibit) {
     while (ibit.a(), ibit.hasNext(2)) {
         var headPos = ibit.getBytePos();
         var tag_and_length = ibit.ui16(); // tag and length
-        var code = tag_and_length >>> 6;
-        var length = tag_and_length & 0x3f;
-        if (length === 0x3f) {
-            length = ibit.ui32();
+        var c = tag_and_length >>> 6;
+        var l = tag_and_length & 0x3f;
+        if (l === 0x3f) {
+            l = ibit.ui32();
         }
         var startOfContent = ibit.getBytePos();
-        var tag = FlappSWFTag.load(code, length, ibit);
+        var tag = FlappSWFTag.load(c, l, ibit);
        controlTags.push(tag);
-        ibit.setPos(startOfContent + length, 0);
+        ibit.setPos(startOfContent + l, 0);
     }
     this.controlTags = controlTags;
 }