Quantcast

Fixed error

p3lim-52096 [10-14-08 - 18:24]
Fixed error

git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@26 ae24c21f-2f0c-4c94-9256-0092abe71e0d
Filename
pMinimap/pMinimapConfig.lua
diff --git a/pMinimap/pMinimapConfig.lua b/pMinimap/pMinimapConfig.lua
index 273491c..724bfaa 100644
--- a/pMinimap/pMinimapConfig.lua
+++ b/pMinimap/pMinimapConfig.lua
@@ -91,13 +91,11 @@ local function CreateOptions(self, db)
 	):SetPoint('TOPLEFT', sub, 'BOTTOMLEFT', 0, -156)
 end

-function pMinimap.PLAYER_ENTERING_WORLD(self, event)
+function pMinimap.PLAYER_ENTERING_WORLD()
 	local db = pMinimapDB or {point = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -15, -15}, scale = 0.9, offset = 1, colors = {0, 0, 0, 1}, durability = true}

 	LibStub('LibSimpleOptions-1.0').AddOptionsPanel('pMinimap', function(self) CreateOptions(self, db) end)
 	LibStub('LibSimpleOptions-1.0').AddSlashCommand('pMinimap', '/pminimap', '/pmm')

-	self:UnregisterEvent(event)
-
 	pMinimapDB = db
 end
\ No newline at end of file