unit_type_iterate() to call unit_type_array_last() just once
Number of unit types in the ruleset is not going to change during their iteration, so unit_type_iterate() should get that number just once, instead of calling unit_type_array_last() on every round (to avoid function call overhead)
Number of unit types in the ruleset is not going to change during their iteration, so unit_type_iterate() should get that number just once, instead of calling unit_type_array_last() on every round (to avoid function call overhead)