Fixed some locals
This commit is contained in:
@ -568,10 +568,10 @@ end
|
|||||||
|
|
||||||
function MyInventory:GetSortedCharList(sorttype, realm)
|
function MyInventory:GetSortedCharList(sorttype, realm)
|
||||||
if IsAddOnLoaded("DataStore_Containers") then
|
if IsAddOnLoaded("DataStore_Containers") then
|
||||||
local realmname
|
|
||||||
local realmlist = {}
|
local realmlist = {}
|
||||||
local realmcount = 0
|
local realmcount = 0
|
||||||
if not realm then
|
if not realm then
|
||||||
|
local realmname
|
||||||
for realmname in pairs(DataStore:GetRealms()) do
|
for realmname in pairs(DataStore:GetRealms()) do
|
||||||
realmcount = realmcount + 1
|
realmcount = realmcount + 1
|
||||||
realmlist[realmcount] = realmname
|
realmlist[realmcount] = realmname
|
||||||
@ -582,6 +582,7 @@ function MyInventory:GetSortedCharList(sorttype, realm)
|
|||||||
end
|
end
|
||||||
local result = {}
|
local result = {}
|
||||||
local idx = 0
|
local idx = 0
|
||||||
|
local i
|
||||||
for i=1, realmcount do
|
for i=1, realmcount do
|
||||||
for charname, _ in pairs(DataStore:GetCharacters(realmlist[i])) do
|
for charname, _ in pairs(DataStore:GetCharacters(realmlist[i])) do
|
||||||
if DataStore_Containers.Characters[DataStore:GetCharacter(charname, realmlist[i])] then
|
if DataStore_Containers.Characters[DataStore:GetCharacter(charname, realmlist[i])] then
|
||||||
|
|||||||
Reference in New Issue
Block a user