Why is max_trait_points being declared as int&, when it's not being modified inside the function?