diff --git a/Content.Server/NPC/Systems/NPCCombatSystem.Ranged.cs b/Content.Server/NPC/Systems/NPCCombatSystem.Ranged.cs index f5591daa47..12e33b48a4 100644 --- a/Content.Server/NPC/Systems/NPCCombatSystem.Ranged.cs +++ b/Content.Server/NPC/Systems/NPCCombatSystem.Ranged.cs @@ -189,9 +189,9 @@ private void UpdateRanged(float frameTime) EntityCoordinates targetCordinates; if (_mapManager.TryFindGridAt(xform.MapID, targetPos, out var gridUid, out var mapGrid)) - targetCordinates = new(gridUid, _map.WorldToLocal(comp.Target, mapGrid, targetSpot)); + targetCordinates = new EntityCoordinates(gridUid, mapGrid.WorldToLocal(targetSpot)); else - targetCordinates = new(xform.MapUid!.Value, targetSpot); + targetCordinates = new EntityCoordinates(xform.MapUid!.Value, targetSpot); comp.Status = CombatStatus.Normal;