summaryrefslogtreecommitdiff
path: root/src/ghost.c
diff options
context:
space:
mode:
authorSatoMew <SatoMew@users.noreply.github.com>2019-08-04 20:35:38 +0100
committerGitHub <noreply@github.com>2019-08-04 20:35:38 +0100
commit667f0837e2c0fecb03e4198a182cf04624a47fbd (patch)
tree4f11ff910478fdb34a4c40c465b30be2ac1a22da /src/ghost.c
parent89da828794d036e33ef313ab95868c8be6bb039f (diff)
parentce941e6f56803b389c20a52c0a5b89f5ade12b7a (diff)
Merge branch 'master' into master
Diffstat (limited to 'src/ghost.c')
-rw-r--r--src/ghost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ghost.c b/src/ghost.c
index 97b86aa76..dd29fb7ca 100644
--- a/src/ghost.c
+++ b/src/ghost.c
@@ -1148,7 +1148,8 @@ static void sub_8112B78(struct Sprite *sprite)
if (++coeffB > 16)
coeffB = 16;
- if (--(s16)coeffA < 0)
+ --coeffA;
+ if ((s16)coeffA < 0)
coeffA = 0;
SetGpuReg(REG_OFFSET_BLDALPHA, BLDALPHA_BLEND(coeffA, coeffB));