Simple question about editing arrays

I managed to fix it. It had to do with the dict that stored all the array values, which was declared as “const”. In my understanding, this means I wasn’t allowed to modify the values in the array. Thanks for your help!