diff options
author | SatoMew <SatoMew@users.noreply.github.com> | 2019-08-04 20:35:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-04 20:35:38 +0100 |
commit | 667f0837e2c0fecb03e4198a182cf04624a47fbd (patch) | |
tree | 4f11ff910478fdb34a4c40c465b30be2ac1a22da /src/ghost.c | |
parent | 89da828794d036e33ef313ab95868c8be6bb039f (diff) | |
parent | ce941e6f56803b389c20a52c0a5b89f5ade12b7a (diff) |
Merge branch 'master' into master
Diffstat (limited to 'src/ghost.c')
-rw-r--r-- | src/ghost.c | 3 |
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)); |