diff --git a/src/hud.rs b/src/hud.rs index d58e7aa..95e0be9 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -1094,6 +1094,7 @@ fn handle_target_event( play_sfx = true; } if let Some(entity) = target { + // TODO: This can panic if the entity despawns in the meantime commands.entity(*entity).insert(IsTargeted); play_sfx = true;