So, for my "Fished Max" project I'm using arrays of databanks to store map data.
I kept encountering obscure bugs with an empty (i.e. all zero) map, with the program throwing out the error "Attempt to index array element beyond array length".
However, when I loaded map data and did the same thing, no errors.
I finally tracked it down to the fact that, even though my databank was full of zeros, if I manually fill the bank with zeros before I start, the errors don't occur.
What. The. Heck...?
I kept encountering obscure bugs with an empty (i.e. all zero) map, with the program throwing out the error "Attempt to index array element beyond array length".
However, when I loaded map data and did the same thing, no errors.
I finally tracked it down to the fact that, even though my databank was full of zeros, if I manually fill the bank with zeros before I start, the errors don't occur.
What. The. Heck...?