Quantcast

-slight update

Xruptor [12-29-10 - 14:10]
-slight update
Filename
RightClickSelfCast.lua
diff --git a/RightClickSelfCast.lua b/RightClickSelfCast.lua
index 5a95409..6fae405 100644
--- a/RightClickSelfCast.lua
+++ b/RightClickSelfCast.lua
@@ -21,9 +21,6 @@ f:SetScript("OnEvent", function(self, event, ...) self[event](self, ...) end)

 function f:PLAYER_LOGIN()

-	self:UnregisterEvent("PLAYER_LOGIN")
-	self.PLAYER_LOGIN = nil
-
 	--this is for the mod ExtraBar (Author: Cowmonster)
 	--http://www.wowinterface.com/downloads/info14492-ExtraBar.html
 	for id=1, 12 do
@@ -48,6 +45,9 @@ function f:PLAYER_LOGIN()
 		end
 	end

+	self:UnregisterEvent("PLAYER_LOGIN")
+	self.PLAYER_LOGIN = nil
+
 end

 if IsLoggedIn() then f:PLAYER_LOGIN() else f:RegisterEvent("PLAYER_LOGIN") end
\ No newline at end of file