Calling LAM2:RegisterAddonPanel("ReloadButton", panelData) creates a global variable for the settings panel, which will overwrite any variables that existed prior. Since you pass "ReloadButton", it will replace your global table. Use something like ReloadButtonSettings instead and it should work.
|