We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f99cf5 commit 7c12e9cCopy full SHA for 7c12e9c
src/TSMapEditor/UI/Windows/TriggersWindow.cs
@@ -534,9 +534,13 @@ private void ShowReferences()
534
}
535
536
// Check other triggers to see whether this trigger is referenced by them
537
- var allReferringTriggers = map.Triggers.FindAll(trig => {
+ var allReferringTriggers = map.Triggers.FindAll(trig =>
538
+ {
539
foreach (var triggerAction in trig.Actions)
540
{
541
+ if (!map.EditorConfig.TriggerEventTypes.ContainsKey(triggerAction.ActionIndex))
542
+ continue;
543
+
544
var actionType = map.EditorConfig.TriggerActionTypes[triggerAction.ActionIndex];
545
546
for (int i = 0; i < triggerAction.Parameters.Length && i < actionType.Parameters.Length; i++)
0 commit comments