From 0e6dc594e93fdd6ee17bf16cd63918986dc2589b Mon Sep 17 00:00:00 2001 From: cadmic Date: Sun, 28 Jan 2024 10:17:57 -0800 Subject: [PATCH] Match z_en_dodongo.c (#1640) --- src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c b/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c index 507c0da58b..e9a04f9efe 100644 --- a/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c +++ b/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c @@ -669,8 +669,6 @@ void EnDodongo_SetupDeath(EnDodongo* this, PlayState* play) { } void EnDodongo_Death(EnDodongo* this, PlayState* play) { - EnBom* bomb; - if (this->skelAnime.curFrame < 35.0f) { if (this->actor.params == EN_DODONGO_SMOKE_DEATH) { EnDodongo_SpawnBombSmoke(this, play); @@ -680,8 +678,8 @@ void EnDodongo_Death(EnDodongo* this, PlayState* play) { } if (SkelAnime_Update(&this->skelAnime)) { if (this->timer == 0) { - bomb = (EnBom*)Actor_Spawn(&play->actorCtx, play, ACTOR_EN_BOM, this->actor.world.pos.x, - this->actor.world.pos.y, this->actor.world.pos.z, 0, 0, 6, BOMB_BODY); + EnBom* bomb = (EnBom*)Actor_Spawn(&play->actorCtx, play, ACTOR_EN_BOM, this->actor.world.pos.x, + this->actor.world.pos.y, this->actor.world.pos.z, 0, 0, 6, BOMB_BODY); if (bomb != NULL) { bomb->timer = 0; this->timer = 8;