diff options
Diffstat (limited to 'src/battle/anim/ghost.c')
-rw-r--r-- | src/battle/anim/ghost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/battle/anim/ghost.c b/src/battle/anim/ghost.c index c4bbe8458..d2db76975 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; |