View Single Post
08-06-12, 01:27 PM   #198
Allara
A Kobold Labourer
 
Allara's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 1
Originally Posted by Vladinator View Post
Can't blame me for trying, sometimes devs create functions that have one purpose but can fulfill another, in this case they made sure you can't use this for anything else, but it was worth at least trying out. :P
It wouldn't surprise me if units were stored as a bitmask or some other representation (not a string) at the C level, which is why this isn't working as you'd expect. It'd also be much faster than a string comparison, which is why this new function is very helpful.