Original Post
I have found my code and this method to be extremely slow:
masterClass->playerManager->player[currentPlayer]->health = 100;
I was wondering how I can optimize this code to make it run faster... I have heard of adding a function inside of the player class, but I''m not sure how I would do this... any help on this issue is greatly appreciated. Thanks.