How do i make a function change the value of a dynamic vector? - Modular