Quantcast
WoWInterface - View Single Post - Help rectifying small batch of code 8.0 broke.
View Single Post
07-25-18, 04:27 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,511
[quote=Torhal;328966]
Originally Posted by Sylen View Post
I use this for highlighting debuffs

Lua Code:
  1. _, ic, _, dT = UnitBuff(s.unit, i)


Unless you're declaring these elsewhere prefixed by "local" you're leaking variables into the global scope. There have been a few occasions where Blizzard has accidentally done this themselves, so AddOn code which also was doing this started causing problems by touching the global "_" variable in secure code.
Yeah, I noticed this same thing with nUI a few years back when it was mentioned in passing. So I added the change during one of the expansion updates.
__________________
  Reply With Quote