Incorrect initialization of UU[] declared in vars block
fractal161 opened this issue · 1 comments
When attempting to read values from a UU[] which has been initialized in a vars block (say UU[] test = UU[]($1234, $5678, $9ABC)
), the result is a jumbled collection of the bytes present (e.g. right now test[0] = $5634
). I have observed similar issues with the UUU[] type, and potentially others.
Attached is a small program that reproduces the issue for UU[]s (along with a tileset that will be embedded lmao). Since I can't attach .fab
or .cfg
files, they are included with .txt
appended.
On the offchance that somebody needs a workaround in the meantime, re-initializing the values in a function/mode (e.g. at the start of main) appears to work properly. Continuing the example above, you could later set test[0] = $1234
and so on, and this works as intended.
Pretty sure this is fixed on b0.5
branch now.