add to list
parent
5f912b9882
commit
6c5f57690f
|
@ -168,7 +168,10 @@ namespace OpenSim.Modules.PathFinding
|
|||
PathNode _node = _env.Nodes.Find(X => X.PositionX == (int)position.X && X.PositionY == (int)position.Y);
|
||||
|
||||
if (_node == null)
|
||||
{
|
||||
_node = new PathNode((int)position.X, (int)position.Y, false, false);
|
||||
_env.Nodes.Add(_node);
|
||||
}
|
||||
|
||||
if (walkable == 1)
|
||||
_node.Walkable = true;
|
||||
|
|
Loading…
Reference in New Issue