You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can lead to undefined behavior. From TrashInterface: symbol_grid[y][x] = type_options[ grid.At(x,y) ].symbol;
The use of brackets here allows reading beyond the end of the array when illegal cell type ids are specified.
Suggestion: Change use of brackets to .at() to instead throw an exception if this occurs.
The text was updated successfully, but these errors were encountered:
This can lead to undefined behavior. From TrashInterface:
symbol_grid[y][x] = type_options[ grid.At(x,y) ].symbol;
The use of brackets here allows reading beyond the end of the array when illegal cell type ids are specified.
Suggestion: Change use of brackets to .at() to instead throw an exception if this occurs.
The text was updated successfully, but these errors were encountered: