Replace hardcoded number in MakeCaptureStars.

This commit is contained in:
ultima-soul 2021-06-18 19:20:05 -07:00 committed by GitHub
parent 182df7c101
commit 9407a1ac76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1420,7 +1420,7 @@ static void MakeCaptureStars(struct Sprite *sprite)
LoadBallParticleGfx(BALL_MASTER);
for (i = 0; i < ARRAY_COUNT(sCaptureStars); i++)
{
u8 spriteId = CreateSprite(&sBallParticleSpriteTemplates[4], sprite->pos1.x, sprite->pos1.y, subpriority);
u8 spriteId = CreateSprite(&sBallParticleSpriteTemplates[BALL_MASTER], sprite->pos1.x, sprite->pos1.y, subpriority);
if (spriteId != MAX_SPRITES)
{
gSprites[spriteId].sDuration = 24;