From 83abacd2f9243c462246cdfb825cb5847a2e1096 Mon Sep 17 00:00:00 2001 From: Sandor Takacs Date: Tue, 6 Sep 2016 18:04:57 +0200 Subject: [PATCH] Remove some locals --- MyInventory/MyInventory.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MyInventory/MyInventory.lua b/MyInventory/MyInventory.lua index 000b10f..5d514b6 100644 --- a/MyInventory/MyInventory.lua +++ b/MyInventory/MyInventory.lua @@ -456,7 +456,6 @@ function MyInventory:UserDropDown_Initialize() local chars = MyInventory:GetSortedCharList(MyInventory.GetOpt("Sort")) local frame = this:GetParent():GetParent() local selectedValue = UIDropDownMenu_GetSelectedValue(this) - local i for i = 1, getn(chars) do local info = { @@ -571,7 +570,6 @@ function MyInventory:GetSortedCharList(sorttype, realm) local realmlist = {} local realmcount = 0 if not realm then - local realmname for realmname in pairs(DataStore:GetRealms()) do realmcount = realmcount + 1 realmlist[realmcount] = realmname @@ -582,8 +580,7 @@ function MyInventory:GetSortedCharList(sorttype, realm) end local result = {} local idx = 0 - local i - for i=1, realmcount do + for i = 1, realmcount do for charname, _ in pairs(DataStore:GetCharacters(realmlist[i])) do if DataStore_Containers.Characters[DataStore:GetCharacter(charname, realmlist[i])] then idx = idx + 1