View Single Post
07/24/22, 12:00 PM   #12
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 656
Just a quick note, checking for duplicates you use the id64 event I'd in the form of a string as mentioned and loop over the events. If looping over the events more then once takes time then organize your data differently. Such as using the id64, in the form of a string as the key.

Even if SetNextEventCallback() says it is in order Lua does not save anything in order. Meaning if I have an array starting with [1] and then I add [2] the next time the game loads it could read it as 2, 1.
  Reply With Quote