Arrays inside of structs do not generate proper ArrayGet/Set wrappers. This only happens when extensions are off (obviously), but prevents arrays from working at all, and will always throw "out of bounds" errors.
Two functions will be made here, ArrayGetstroct and ArrayGettempst. Note that ArrayGet*stroct's bytecode assumes it's a 1-length array, nor does it generate two functions for the two different arrays being referenced.
(There's also a secondary error that will occur if you comment out the array in nested_struct, inwhich the name of the struct becomes garbage in the error message).
This is a huge breaker for what I'm trying to do :(
https://sourceforge.net/p/fteqw/tickets/83/
paril101 wrote on 2020-07-07:
Arrays inside of structs do not generate proper ArrayGet/Set wrappers. This only happens when extensions are off (obviously), but prevents arrays from working at all, and will always throw "out of bounds" errors.
Here's QC to reproduce:
Two functions will be made here, ArrayGetstroct and ArrayGettempst. Note that ArrayGet*stroct's bytecode assumes it's a 1-length array, nor does it generate two functions for the two different arrays being referenced.
(There's also a secondary error that will occur if you comment out the array in nested_struct, inwhich the name of the struct becomes garbage in the error message).
This is a huge breaker for what I'm trying to do :(