Fix song Fairies (#4826)

* Fix song fairies

* forgot a bool
This commit is contained in:
Pepper0ni
2025-01-08 16:51:51 +00:00
committed by GitHub
parent 9455579f42
commit 323ea2df96
5 changed files with 17 additions and 3 deletions

View File

@@ -101,8 +101,10 @@ void ShotSun_SpawnFairy(ShotSun* this, PlayState* play) {
}
//! @bug fairyType may be uninitialized
Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ELF, this->actor.home.pos.x, this->actor.home.pos.y,
this->actor.home.pos.z, 0, 0, 0, fairyType, true);
if (GameInteractor_Should(VB_SPAWN_SONG_FAIRY, true, this)) {
Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ELF, this->actor.home.pos.x, this->actor.home.pos.y,
this->actor.home.pos.z, 0, 0, 0, fairyType, true);
}
Actor_Kill(&this->actor);
}