Originally Posted by Slakah
I just use "ADDON_LOADED" as all of my mods use AddonLoader.
Also as a slight aside I couldn't help but notice this
nil == nil, there's really no need for an extra function call, which is odd as you seem determined to avoid them here
|
Code:
for k, v in next, defaults do
this checks the
entries
Code:
if(type(pMinimapDB[k]) == 'nil') then
this checks if the
value has been reset and/or does not exist.
if so, proceed to add the default settings.