WoWInterface - View Single Post - Need help understanding why loop is not always processing entire table
View Single Post
08-27-21, 01:36 PM   #2
A Frostmaul Preserver
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 289
Hi and welcome!

You could try executing your code after PLAYER_LOGIN like this:

Lua Code:
  1. local startupFrame = CreateFrame("Frame")
  2. startupFrame:RegisterEvent("PLAYER_LOGIN")
  3. startupFrame:SetScript("OnEvent", function()
  4.   -- Your code here.
  5. end)
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote