From 9ea1c6cc91c73ae11405985dab662ad24076c71c Mon Sep 17 00:00:00 2001 From: Yugang Zhou Date: Sun, 10 May 2026 09:31:34 +0800 Subject: [PATCH] Guard missing shop menu button Avoid indexing GameMenuButtonShop when the client does not provide shop UI, preventing a nil global error during GUI setup. --- modules/gui/homeb.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/gui/homeb.lua b/modules/gui/homeb.lua index 6735658..1eca278 100644 --- a/modules/gui/homeb.lua +++ b/modules/gui/homeb.lua @@ -272,8 +272,10 @@ DFRL:NewMod("GUI-Dragonflight", 4, function() UIFrameFadeIn(Base.titleFrame, 0.2, 0, 1) end) - GameMenuButtonShop:ClearAllPoints() - GameMenuButtonShop:SetPoint("TOP", self.gamemenuBtn, "BOTTOM", 0, -15) + if GameMenuButtonShop then + GameMenuButtonShop:ClearAllPoints() + GameMenuButtonShop:SetPoint("TOP", self.gamemenuBtn, "BOTTOM", 0, -15) + end GameMenuFrame:SetWidth(GameMenuFrame:GetWidth() + 10) GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 60)