summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2020-07-27 12:27:35 +0200
committerPokeCodec <doremylover456@gmail.com>2020-07-27 13:17:18 -0400
commit11178a49db67304bb82287e4c93ef4a36cf5edca (patch)
treeccb9d7fa211abd5d03f948f76f29e494187367d0 /src/battle_script_commands.c
parentad3de420af4f5daf617103352f5139e17e7b636a (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/battle_script_commands.c')
0 files changed, 0 insertions, 0 deletions