From d385692cdcb7399e794003807c61bd6f19cbdcac Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Wed, 17 Aug 2022 14:19:35 +0200 Subject: [PATCH] fix LibCustomGlow-1.0 --- Libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua b/Libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua index 401ed5d..7f15235 100644 --- a/Libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua +++ b/Libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua @@ -6,7 +6,7 @@ https://www.wowace.com/projects/libbuttonglow-1-0 -- luacheck: globals CreateFromMixins ObjectPoolMixin CreateTexturePool CreateFramePool local MAJOR_VERSION = "LibCustomGlow-1.0" -local MINOR_VERSION = 16 +local MINOR_VERSION = 17 if not LibStub then error(MAJOR_VERSION .. " requires LibStub.") end local lib, oldversion = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) if not lib then return end @@ -313,6 +313,9 @@ function lib.PixelGlow_Stop(r,key) if not r then return end + if type(key) ~= "string" or type(key) ~= "number" then + key = nil + end key = key or "" if not r["_PixelGlow"..key] then return false @@ -408,6 +411,9 @@ function lib.AutoCastGlow_Stop(r,key) if not r then return end + if type(key) ~= "string" or type(key) ~= "number" then + key = nil + end key = key or "" if not r["_AutoCastGlow"..key] then