When removing this if clause, we cannot getCurrentFrame of null pointers. Were these checks added to all the places where we'd need to add them ? (if I remember correctly there are lots of activeAnimation->getCurrentFrame, which would all need to get that check, so it was more convenient to put the NULL check into the function.