MISSING_VAR incorrect in array loop
wporter82 opened this issue · comments
Wayne Porter commented
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.
KamasamaK commented
Another workaround is to reference it as local.xyz
each time it is used.