quick fix for crashing triggers

This commit is contained in:
2026-01-18 16:39:16 -05:00
parent 044ef8b818
commit 76f134fe60

View File

@@ -40,7 +40,7 @@ namespace anm2ed::anm2
auto& animation = *animations.items.insert(animations.items.begin() + start + count, Animation(element)); auto& animation = *animations.items.insert(animations.items.begin() + start + count, Animation(element));
for (auto& trigger : animation.triggers.frames) for (auto& trigger : animation.triggers.frames)
if (!content.events.contains(trigger.eventID)) content.events[trigger.eventID]; if (!content.events.contains(trigger.eventID)) content.events[trigger.eventID].name = localize.get(L);
indices.insert(index); indices.insert(index);
count++; count++;