View Single Post
01-11-14, 12:06 AM   #82
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Originally Posted by Phanx View Post
It won't make a huge difference, it's just a matter of logical principle -- for example, what you're doing now is the same as if instead of creating that "playerClass" variable at the top of your file, you looked up the player's class again every time you wanted to class-color something. If the return value from a function will never change, there's no reason to keep calling it over and over.
Ah I get it now.
__________________
Tweets YouTube Website
  Reply With Quote