Remove implicit GridId conversions (#8975)
This commit is contained in:
@@ -97,7 +97,7 @@ namespace Content.Server.AI.Pathfinding.Accessible
|
||||
|
||||
private void GridRemoved(GridRemovalEvent ev)
|
||||
{
|
||||
_regions.Remove(ev.GridId);
|
||||
_regions.Remove(ev.EntityUid);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Content.Server.AI.Pathfinding.Pathfinders
|
||||
return null;
|
||||
}
|
||||
|
||||
if (_entityManager.Deleted(_pathfindingArgs.Start.GridIndex))
|
||||
if (_entityManager.Deleted(_pathfindingArgs.Start.GridUid))
|
||||
return null;
|
||||
|
||||
var frontier = new PriorityQueue<ValueTuple<float, PathfindingNode>>(new PathfindingComparer());
|
||||
|
||||
Reference in New Issue
Block a user