Quantcast WoWInterface - View Single Post - Map POI Tracking
View Single Post
06-25-15, 11:50 AM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Originally Posted by myrroddin View Post
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:
  1. local poi = _G["WorldMapFramePOI"..i]
  2. local poiTexture = _G["WorldMapFramePOI"..i.."Texture"] -- right here
Replace with:
Lua Code:
  1. local poi = _G["WorldMapFramePOI"..i]
  2. 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.
  Reply With Quote