mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
fix #32
This commit is contained in:
@@ -6,7 +6,7 @@ local LW = LibStub:GetLibrary("LibWho-2.0");
|
|||||||
--Lua functions
|
--Lua functions
|
||||||
local split, upper = string.split, string.upper
|
local split, upper = string.split, string.upper
|
||||||
local wipe = table.wipe
|
local wipe = table.wipe
|
||||||
local pairs = pairs
|
local pairs, unpack = pairs, unpack
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local GetBattlefieldScore = GetBattlefieldScore
|
local GetBattlefieldScore = GetBattlefieldScore
|
||||||
local GetFriendInfo = GetFriendInfo
|
local GetFriendInfo = GetFriendInfo
|
||||||
@@ -61,6 +61,10 @@ function CC:GetClassByName(name, realm)
|
|||||||
if not name or name == "" then return end
|
if not name or name == "" then return end
|
||||||
if realm and realm == "" then return end
|
if realm and realm == "" then return end
|
||||||
|
|
||||||
|
if type(name) == "table" then
|
||||||
|
name = unpack(name)
|
||||||
|
end
|
||||||
|
|
||||||
local cacheDB = self:GetCacheTable()
|
local cacheDB = self:GetCacheTable()
|
||||||
|
|
||||||
if realm then
|
if realm then
|
||||||
|
|||||||
Reference in New Issue
Block a user