SetObjectivePrimary(objective, primary);
If ‘primary’ is not 0, than the given indexed objective gets to be primary, otherwise secondary.