I want to fill a list of structures within a loop, but it seems to fill it only with the last reference to the struct used.
This is how I implemented the list: