diff --git a/scenes/player_ent.c b/scenes/player_ent.c index 0ec1583..15f003d 100644 --- a/scenes/player_ent.c +++ b/scenes/player_ent.c @@ -144,6 +144,9 @@ static unsigned int player_finish_transition_func(Entity_t* ent) if (p_spr->current_frame == p_spr->sprites[p_spr->current_idx].sprite->frame_count - 1) { p_spr->pause = true; + // This entity has no special init, so it's fine to remove + // at end of animation + remove_entity(ent->manager, ent->m_id); } return p_spr->current_idx; }