summaryrefslogtreecommitdiff
path: root/src/battle/anim/ghost.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-02-13 16:08:57 -0500
committerGitHub <noreply@github.com>2020-02-13 16:08:57 -0500
commit5dc85a079d9b18d95e655ebf5709530be41797f9 (patch)
tree2a6c50b6fbb20d074cc6d526cb904b251166de7b /src/battle/anim/ghost.c
parentd067f0e6717908f4cb6d0c0ac9ba4fea8eb2cebe (diff)
parentaeebfee838222b9054da0632f2a65d2f934f7e23 (diff)
Merge pull request #742 from PikalaxALT/modern_gcc
Modern gcc
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 2b7ff8d95..4dea1ed1d 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;