fixed bug where the END tag was missing with -Tm
authorkramm <kramm>
Mon, 13 Oct 2008 14:09:45 +0000 (14:09 +0000)
committerkramm <kramm>
Mon, 13 Oct 2008 14:09:45 +0000 (14:09 +0000)
src/swfcombine.c

index a1437c1..76bb1cc 100644 (file)
@@ -1062,7 +1062,7 @@ void normalcombine(SWF*master, char*slave_name, SWF*slave, SWF*newswf)
                FLAGS_WRITEDEFINES|FLAGS_WRITENONDEFINES|   FLAGS_WRITESPRITE   );
     }
 
-    swf_DeleteTag(newswf, tag);
+    swf_DeleteTag(newswf, newswf->firstTag);
 }
 
 void combine(SWF*master, char*slave_name, SWF*slave, SWF*newswf)