Fixing characters order failed, recursion detected: problem fixed

This commit is contained in:
honfika@gmail.com
2014-12-07 16:21:14 +01:00
parent cdae56d128
commit bc3967597c
2 changed files with 4 additions and 5 deletions

View File

@@ -318,6 +318,10 @@ public final class SWF implements SWFContainerItem, Timelined {
if (checkAll || tag.isModified()) {
Set<Integer> needed = new HashSet<>();
tag.getNeededCharacters(needed);
if (tag instanceof CharacterTag) {
CharacterTag characterTag = (CharacterTag) tag;
needed.remove(characterTag.getCharacterId());
}
boolean moved = false;
for (Integer id : needed) {
if (!addedCharacterIds.contains(id)) {