Originally Posted by SDPhantom
From the code you posted, this starts an error propagating from the following line:
Code:
local Funs, Settings = unpack(select(2, ...))
This is because the shared addon table is empty and as such, both variables will be set to nil. Further code raises an attempt to index nil error.
|
Woops. Forgot a part. First file should be:
Lua Code:
local addon, ns = ...
ns[1] = {}
ns[2] = {}
local Funs, Settings = unpack(select(2, ...))
Settings.defaults = {
x = 0,
y = 0,
}
Funs.updateSettings = function()
-- do stuff
end