Load marker texture by actual addon folder name (case-proof)

This commit is contained in:
DuvelCorp
2026-09-15 07:34:39 +02:00
parent 99e7eaa5d2
commit 315f6bb4f1
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -908,7 +908,7 @@ function MTH_Map:BuildPin(parent, name, isMinimap)
pin.tex = pin:CreateTexture(nil, "ARTWORK")
pin.tex:SetAllPoints(pin)
pin.tex:SetTexture("Interface\\AddOns\\MetaHunt\\img\\node")
pin.tex:SetTexture("Interface\\AddOns\\" .. (MTH_CONST and MTH_CONST.addonFolder or "MetaHunt") .. "\\img\\node")
pin.tex:SetVertexColor(1, 1, 1, 1)
pin:SetScript("OnEnter", function()