summaryrefslogtreecommitdiff
path: root/src/battle/anim/ghost.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-26 19:47:30 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-26 19:47:30 -0400
commit5d268f0acf7ecc320423b0c9bff18e125015b4c3 (patch)
tree52ce08a521e03a38a2474c029d3222e4dfe45328 /src/battle/anim/ghost.c
parent4fedd5183be7de5d5e0fa59c269b28c49d88ef88 (diff)
Make Ruby compile with gcc-8
Diffstat (limited to 'src/battle/anim/ghost.c')
-rw-r--r--src/battle/anim/ghost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/battle/anim/ghost.c b/src/battle/anim/ghost.c
index 52911f366..69d47a998 100644
--- a/src/battle/anim/ghost.c
+++ b/src/battle/anim/ghost.c
@@ -1145,7 +1145,8 @@ static void sub_80DF0B8(struct Sprite *sprite)
if (++coeffB > 16)
coeffB = 16;
- if (--(s16)coeffA < 0)
+ --coeffA;
+ if ((s16)coeffA < 0)
coeffA = 0;
REG_BLDALPHA = (coeffB << 8) | coeffA;