Fixed #1961 Characters can use characterId 0, PlaceObject can use depth 0

Changed #1961 SoundStreamHead on main timeline is exported/imported with identifier "-1"
This commit is contained in:
Jindra Petřík
2023-02-04 18:08:53 +01:00
parent d2c15e4b60
commit aaa354804e
9 changed files with 27 additions and 26 deletions

View File

@@ -989,10 +989,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
logger.log(Level.SEVERE, "SWF already contains characterId={0}", characterId);
}
if (characterId != 0) {
characters.put(characterId, (CharacterTag) t);
characterIdTags.put(characterId, new ArrayList<>());
}
characters.put(characterId, (CharacterTag) t);
characterIdTags.put(characterId, new ArrayList<>());
} else if (characterIdTags.containsKey(characterId)) {
characterIdTags.get(characterId).add((CharacterIdTag) t);
}