When looping over an array of structs, setting any value of the local scoped struct will incorrectly be flagged as not being declared with a var statement

A workaround would be to add a new variable that we work with instead:

But this just adds complexity and possibly introduces potential bugs further down the line.