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?
|
It would probably work, but it's even better just to remove/ignore the poi frame.