From d358f96f38511d9ab8fde1e4cc7d2a1edaeb9378 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Fri, 5 Apr 2013 06:20:14 +0000 Subject: [PATCH] Don't leak names into the global namespace. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@886 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleAura.lua | 4 ++-- OvaleSkada.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OvaleAura.lua b/OvaleAura.lua index 037a1e7..7581ecf 100644 --- a/OvaleAura.lua +++ b/OvaleAura.lua @@ -149,7 +149,7 @@ local function RemoveAurasForGUID(guid) end end -function RemoveAurasForMissingUnits() +local function RemoveAurasForMissingUnits() -- Remove all auras from GUIDs that can no longer be referenced by a unit ID, -- i.e., not in the group or not targeted by anyone in the group or focus. for guid in pairs(self_aura) do @@ -159,7 +159,7 @@ function RemoveAurasForMissingUnits() end end -function UpdateAuras(unitId, unitGUID) +local function UpdateAuras(unitId, unitGUID) self_serial = self_serial + 1 if not unitId then diff --git a/OvaleSkada.lua b/OvaleSkada.lua index f3d6fe3..50e98c4 100644 --- a/OvaleSkada.lua +++ b/OvaleSkada.lua @@ -32,7 +32,7 @@ local function GetValue(set) end end -function ReceiveScore(name, guid, scored, scoreMax) +local function ReceiveScore(name, guid, scored, scoreMax) local self = OvaleSkada if guid and Skada and Skada.current and Skada.total then local player = Skada:get_player(Skada.current, guid, nil) -- 1.7.9.5