diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2020-07-27 12:27:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 12:27:35 +0200 |
commit | f007165c538376fa8357727783ede54884c982e1 (patch) | |
tree | be26bbc72688eee63ce7c1e8866a0bc0f4a6e026 /src/text_input_strings.c | |
parent | 2e077f09e43e502a9ffaa93a916babe99b0d6e08 (diff) |
Fix undefined behaviour in protect animation
gPlttBufferFaded[sprite->data[2] + ++i] = gPlttBufferFaded[sprite->data[2] + i + 1]
The above does NOT make it certain that i gets incremented before reading from the right side. Changed it, so the function always increments i first, then reads from pal buffer.
Diffstat (limited to 'src/text_input_strings.c')
0 files changed, 0 insertions, 0 deletions