From 439ef4a1c7c2f86ee56b3d34d766df3ca6144b31 Mon Sep 17 00:00:00 2001 From: Spit <19otari98@gmail.com> Date: Sun, 23 Nov 2025 17:29:18 +0300 Subject: [PATCH] prevent error --- util/info.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/info.lua b/util/info.lua index 13279f1..9124147 100644 --- a/util/info.lua +++ b/util/info.lua @@ -240,8 +240,10 @@ function M.load_tooltip(frame, tooltip) end end for i = 1, getn(tooltip) do -- TODO why is this needed? - _G[frame:GetName() .. 'TextLeft' .. i]:SetJustifyH('LEFT') - _G[frame:GetName() .. 'TextRight' .. i]:SetJustifyH('LEFT') + if _G[frame:GetName() .. 'TextLeft' .. i] and _G[frame:GetName() .. 'TextRight' .. i] then + _G[frame:GetName() .. 'TextLeft' .. i]:SetJustifyH('LEFT') + _G[frame:GetName() .. 'TextRight' .. i]:SetJustifyH('LEFT') + end end frame:Show() end