Storing characters' location in an array

Hello everyone, I would like to store the actors’ locations into an array (CharacterLocation). Am I doing it correctly?

It’s correct. Isn’t it working?