Skip intervals that are deleted within callbacks

This commit is contained in:
ζeh Matt committed 2024-01-25 17:13:25 +02:00
1 parent 84213efde2
commit cc64a17642
1 file changed
+6
+6
View File
@@ -1678,6 +1678,12 @@ void ScriptEngine::UpdateIntervals()
continue;
}
if (interval.Deleted)
{
// There is a chance that in one of the callbacks it deletes another interval.
continue;
}
ExecutePluginCall(interval.Owner, interval.Callback, {}, false);
interval.LastTimestamp = timestamp;