def update_vehicle_profile(spawn_profile, new_vehicle):
    """
    Updates the vehicle profile of the spawning profile
    :param new_vehicle: new vehicle profile
    :param spawn_profile: spawning profile
    :type spawn_profile: SpawningProfile
    :type new_vehicle: VehicleProfile
    :return: updated spawning profile
    """
    return spawn_profile.update_vehicle_profile(new_vehicle)