I want to break the reference from one array to another so when I make changes to the latter, it doesn't update the original one
var home_players_duplicate = player_selections[home_team].duplicate()
print("home_players_duplicate? ", home_players_duplicate == player_selections[home_team]) # is true
I've also tried:
var home_players_duplicate = [] + player_selections[home_team]
..but same result.
I'm having issues as when I make changes to home_players_duplicate, it updates player_selections[home_team] too which i don't want it to do. Any ideas?