View Single Post
07-22-14, 12:16 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That's a lot of unnecessary overhead...

Code:
local name, some, other, vars, here = GetSpellInfo(12345)
if name and name ~= "" then
    -- carry on
end
Adding a simple equality check is a much better solution than adding two function calls.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.