events before EVENT_ADD_ON_LOADED
Just making a note for myself and others.
Logged onto the PTS and got an "attempt to index a nil value" error that appears to originate from my EVENT_SKILLS_FULL_UPDATE handler, and that nil value is a table from saved vars, initialized in EVENT_ADD_ON_LOADED. That means the skills update event arrived before add-on loaded event. Of course it's my fault registering a handler that relies on saved vars before initializing the saved vars. I just didn't know there were events coming before EVENT_ADD_ON_LOADED. |
Not exactly. If you start listening event it will fire as soon as it has something for your listener. So if you want to avoid it - start listening later.
|
All times are GMT -6. The time now is 04:49 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI