Quantcast

Change the handling of SV

p3lim [09-23-10 - 19:55]
Change the handling of SV
Filename
pMinimap.lua
pMinimap.toc
diff --git a/pMinimap.lua b/pMinimap.lua
index c2de826..a3a0687 100644
--- a/pMinimap.lua
+++ b/pMinimap.lua
@@ -31,7 +31,7 @@ local DEFAULTS = {
 }

 function pMinimap:PLAYER_LOGIN()
-	pMinimapDB = pMinimapDB or DEFAULTS
+	pMinimapDB = setmetatable(pMinimapDB or {}, {__index = DEFAULTS})

 	MinimapZoomIn:Hide()
 	MinimapZoomOut:Hide()
diff --git a/pMinimap.toc b/pMinimap.toc
index ba069ab..03ed650 100644
--- a/pMinimap.toc
+++ b/pMinimap.toc
@@ -3,7 +3,7 @@
 ## Version: Alpha
 ## Title: pMinimap
 ## Notes: Yet another square minimap addon
-## SavedVariables: pMinimapDB
+## SavedVariablesPerChar: pMinimapDB
 ## OptionalDeps: LibSharedMedia-3.0, SharedMedia

 libs\LibStub.lua