zelda3
zelda3 copied to clipboard
TCC build crash when carrying items for an unusually long time
Describe your bug here. And how to reproduce it.
Halfway to taking the flopping fish all the way back to the kaka merchant, I got a crash. It only happens in TCC builds and I was afraid it might be another compiler bug. However, the error message:

Points to this code:
// todo: This is an OOB read triggered when lifting for too long
some_animation_timer = kLiftTab2[++some_animation_timer_steps];
assert(some_animation_timer_steps < arraysize(kLiftTab2));
if (some_animation_timer_steps != 3)
return;
What is your build target?
Windows