Fixed #1990 Cloning DefineSprite causing incorrect tags written

This commit is contained in:
Jindra Petřík
2023-03-12 08:08:08 +01:00
parent 583cfc95a6
commit 06c5727e0f
2 changed files with 3 additions and 1 deletions

View File

@@ -1608,7 +1608,7 @@ public class SWFInputStream implements AutoCloseable {
tagLength = available;
}
ByteArrayRange dataRange = new ByteArrayRange(swf.uncompressedData, (int) pos, (int) (tagLength + headerLength));
ByteArrayRange dataRange = new ByteArrayRange(this.data, (int) pos, (int) (tagLength + headerLength));
skipBytes(tagLength);
TagStub tagStub = new TagStub(swf, tagID, "Unresolved", dataRange, tagDataStream);