From eaaff915913e8167a147085e65b27820f554813d Mon Sep 17 00:00:00 2001 From: Filip Szweda <68189467+filip-szweda@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:52:24 +0200 Subject: [PATCH] Update src/utils/helper_functions.py --- src/utils/helper_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/helper_functions.py b/src/utils/helper_functions.py index 47a2a0b..daf879f 100644 --- a/src/utils/helper_functions.py +++ b/src/utils/helper_functions.py @@ -126,6 +126,7 @@ async def wait_for_next_tick(): async def set_agent_dead(player_id: str, object_id: int): """Set agent dead and remove it from the scene.""" logger.debug(f"Starting to set agent {object_id} dead") + player = state.scene.get_player(player_id) if player is None: logger.warning(f"Player with id: {player_id} does not exist")