Originally Posted by myrroddin
Not sure about your question, but probably. I'm not actively playing WoW to test code.
However, I see an unnecessary global lookup, where you already have a local to do the job:
Lua Code:
local poi = _G["WorldMapFramePOI"..i] local poiTexture = _G["WorldMapFramePOI"..i.."Texture"] -- right here
Replace with:
Lua Code:
local poi = _G["WorldMapFramePOI"..i] local poiTexture = poi.."Texture"
Unless for some reason the texture lookup won't work in that manner?
|
Resike's code is getting the
WorldMapFramePOI1 and
WorldMapFramePOI1Texture objects, your code is getting the
WorldMapFramePOI1 object and then attempting to concatenate that with the
"Texture" string (which won't work).