Some Vanilla/Turtle WoW clients do not define GameMenuButtonShop. Reforged currently assumes the frame exists when positioning the custom game menu buttons.
On clients without this frame, direct access can cause a Lua error during menu setup.
Expected behavior
Reforged should load cleanly whether or not the client provides GameMenuButtonShop.
Actual behavior
If GameMenuButtonShop is missing, code that calls methods on it can fail.
Proposed fix
Add a nil guard before repositioning the shop button:
if GameMenuButtonShop then
GameMenuButtonShop:ClearAllPoints()
GameMenuButtonShop:SetPoint(...)
end
This keeps behavior unchanged on clients that have the shop button and avoids errors on clients that do not.
Some Vanilla/Turtle WoW clients do not define
GameMenuButtonShop. Reforged currently assumes the frame exists when positioning the custom game menu buttons.On clients without this frame, direct access can cause a Lua error during menu setup.
Expected behavior
Reforged should load cleanly whether or not the client provides
GameMenuButtonShop.Actual behavior
If
GameMenuButtonShopis missing, code that calls methods on it can fail.Proposed fix
Add a nil guard before repositioning the shop button:
This keeps behavior unchanged on clients that have the shop button and avoids errors on clients that do not.