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

@@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
- #1489 AS1/2 direct editation - for in loop
- #1490, #1493 AS1/2 direct editation - cast op
- AS1/2 cast op decompilation
- Only last DoInitAction tag displayed
## [13.0.3] - 2021-02-12
### Added

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();
}