This commit is contained in:
Crum
2018-12-06 23:00:14 -06:00
parent 9386ddb1a9
commit c5530b4113
+5 -1
View File
@@ -6,7 +6,7 @@ local LW = LibStub:GetLibrary("LibWho-2.0");
--Lua functions
local split, upper = string.split, string.upper
local wipe = table.wipe
local pairs = pairs
local pairs, unpack = pairs, unpack
--WoW API / Variables
local GetBattlefieldScore = GetBattlefieldScore
local GetFriendInfo = GetFriendInfo
@@ -61,6 +61,10 @@ function CC:GetClassByName(name, realm)
if not name or name == "" then return end
if realm and realm == "" then return end
if type(name) == "table" then
name = unpack(name)
end
local cacheDB = self:GetCacheTable()
if realm then