Closed FortyTwoFortyTwo closed 4 years ago
This commit https://github.com/gemidyne/microtf2/commit/e2e6db423b47cd0c1e158623866797ad7cdc37a0 changes the way event is handled. Event.Fire/FireEvent auto deletes handle itself, but Event.FireToClient does NOT auto deletes handle itself, so that has to be deleted manually.
Event.Fire
FireEvent
Event.FireToClient
Untested but im 99% sure thats why as i got error log from that, plugin unloads itself
Thanks for this! Good catch - apologies we didn't catch this during testing.
From what I can see - using the delete keyword is the best way to resolve this. Thanks again for the PR :)
This commit https://github.com/gemidyne/microtf2/commit/e2e6db423b47cd0c1e158623866797ad7cdc37a0 changes the way event is handled.
Event.Fire
/FireEvent
auto deletes handle itself, butEvent.FireToClient
does NOT auto deletes handle itself, so that has to be deleted manually.Untested but im 99% sure thats why as i got error log from that, plugin unloads itself