Originally Posted by Akryn
Code:
table1 = CopyTable(table2)
|
Although not the problem, but that's a nice tidbit to know for a different part of my code.
activeProfile already exists by the time the swap function is called as a reference.
For example. When I load up my main, it will assign
Code:
activeProfile = CFM_Profiles["Thunderlord"]["Sythalin"]
Now I swap the profile via "/cfm load Thunderlord Modtest". It properly reassigns the reference of activeProfile to
CFM_Profiles["Thunderlord"]["Modtest"] and
activeProfile.useProfile = {"Thunderlord", "Modtest"} (confirmed with the print() debugging).
Now, I /reload or logout. When I come back, it still loads
activeProfile referencing
CFM_Profiles["Thunderlord"]["Sythalin"], even though
activeProfile.useProfile was rewritten to "Thunderlord, Modtest" before the reload/relog and should've been saved.
I've tried to reset it with
activeProfile.useProfile = {} before the switch, but that didn't help either.