blakepell / AvalonMudClient

A Windows MUD client written in C#/WPF for .NET 8.
Other
31 stars 7 forks source link

Trigger bug #38

Closed blakepell closed 4 years ago

blakepell commented 4 years ago

If the #trigger is used on a trigger in anyway that creates a trigger during the trigger loop it will cause a crash during the enumeration of the for/each loop.

A possible fix would be to defer the contents of those triggers (that create other triggers) until after the for/each has completed enumerating. There is almost no chance the newly created trigger would need to fire on the same line (that line has already been triggered).