From c5530b4113bf6fcbe392e86ad023554d5a6a26b3 Mon Sep 17 00:00:00 2001 From: Crum Date: Thu, 6 Dec 2018 23:00:14 -0600 Subject: [PATCH] fix #32 --- ElvUI/Core/ClassCache.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ElvUI/Core/ClassCache.lua b/ElvUI/Core/ClassCache.lua index 879e87b..fc5ffd0 100644 --- a/ElvUI/Core/ClassCache.lua +++ b/ElvUI/Core/ClassCache.lua @@ -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