diff --git a/src/ClassicUO.Client/Game/UI/Gumps/HealthBarGump.cs b/src/ClassicUO.Client/Game/UI/Gumps/HealthBarGump.cs index 1fcfbdf2c..502fc3573 100644 --- a/src/ClassicUO.Client/Game/UI/Gumps/HealthBarGump.cs +++ b/src/ClassicUO.Client/Game/UI/Gumps/HealthBarGump.cs @@ -280,8 +280,11 @@ protected override void OnMouseDown(int x, int y, MouseButtonType button) else { - TargetManager.LastTargetInfo.Serial = LocalEntity.Serial; - GameActions.Print(World.Player, $"Target: {LocalEntity.Name}"); + if (LocalEntity != null && LocalEntity.Serial != default) + { + TargetManager.LastTargetInfo.Serial = LocalEntity.Serial; + } + } // ## BEGIN - END ## // MISC Mouse.LastLeftButtonClickTime = 0;