diff --git a/src/imgui/window/events.cpp b/src/imgui/window/events.cpp
index 3259610..fa5a760 100644
--- a/src/imgui/window/events.cpp
+++ b/src/imgui/window/events.cpp
@@ -50,7 +50,13 @@ namespace anm2ed::imgui
auto behavior = [&]()
{
for (auto& id : unused)
+ {
+ for (auto& animation : anm2.animations.items)
+ for (auto& trigger : animation.triggers.frames)
+ if (trigger.eventID == id) trigger.eventID = -1;
+
anm2.content.events.erase(id);
+ }
unused.clear();
};
diff --git a/workshop/metadata.xml b/workshop/metadata.xml
index 334ed25..fadfc93 100644
--- a/workshop/metadata.xml
+++ b/workshop/metadata.xml
@@ -51,6 +51,6 @@ Alternatively, if you have subscribed to the mod, you can find the latest releas
[h3]Happy animating![/h3]
[img]https://files.catbox.moe/4auc1c.gif[/img]
- 2.12
+ 2.13
Public