From 23ff6cf7f3cb3006c3dba4d3e7a8c583e35e59bf Mon Sep 17 00:00:00 2001 From: Sandor Takacs Date: Tue, 6 Sep 2016 17:25:16 +0200 Subject: [PATCH] Fixed some locals --- MyInventory/MyInventory.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MyInventory/MyInventory.lua b/MyInventory/MyInventory.lua index 0a9337d..000b10f 100644 --- a/MyInventory/MyInventory.lua +++ b/MyInventory/MyInventory.lua @@ -568,10 +568,10 @@ end function MyInventory:GetSortedCharList(sorttype, realm) if IsAddOnLoaded("DataStore_Containers") then - local realmname 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,6 +582,7 @@ function MyInventory:GetSortedCharList(sorttype, realm) end local result = {} local idx = 0 + local i for i=1, realmcount do for charname, _ in pairs(DataStore:GetCharacters(realmlist[i])) do if DataStore_Containers.Characters[DataStore:GetCharacter(charname, realmlist[i])] then