View Single Post
08-10-08, 08:09 AM   #4
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 109
Post

In my case, Fred is declared at the highest level within my addon - it's actually a 'savedvariable' too.

After

Fred = {}
Fred['barney'] = {}
print(Fred['barney'])
Fred['barney']['wilma'] = "Flintstone"
Fred = nil
Fred = {}
Fred['barney'] = {}
print(Fred['barney']['wilma'])

results in "Flintstone"

I've actually changed

Fred = nil

to

for val = pairs(Fred) do
for val2 in pairs(Fred[val]) do
Fred[val][val2] = nil
end
end
Fred = nil

and that resets it...

Something related to the way SavedVariables work perhaps?
  Reply With Quote