summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2020-07-27 12:27:35 +0200
committerGitHub <noreply@github.com>2020-07-27 12:27:35 +0200
commitf007165c538376fa8357727783ede54884c982e1 (patch)
treebe26bbc72688eee63ce7c1e8866a0bc0f4a6e026 /src/battle_script_commands.c
parent2e077f09e43e502a9ffaa93a916babe99b0d6e08 (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