diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2020-07-27 12:27:35 +0200 |
---|---|---|
committer | PokeCodec <doremylover456@gmail.com> | 2020-07-27 13:17:18 -0400 |
commit | 11178a49db67304bb82287e4c93ef4a36cf5edca (patch) | |
tree | ccb9d7fa211abd5d03f948f76f29e494187367d0 /src/script.c | |
parent | ad3de420af4f5daf617103352f5139e17e7b636a (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/script.c')
0 files changed, 0 insertions, 0 deletions