Fixed: Only last DoInitAction tag displayed

This commit is contained in:
Jindra Petřík
2021-02-15 07:50:24 +01:00
parent 181b8455e9
commit 44a48b6c48
2 changed files with 4 additions and 2 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.timeline;
import com.jpexs.decompiler.flash.SWF;
@@ -447,7 +448,7 @@ public class Timeline {
if (asm instanceof DoInitActionTag) {
DoInitActionTag initAction = (DoInitActionTag) asm;
String path = swf.getExportName(initAction.spriteId);
String path = swf.getExportName(initAction.spriteId);
path = path != null ? path : "__doinit__" + initAction.spriteId;
if (path.isEmpty()) {
path = initAction.getExportFileName();
}