add to list

master
Christopher Latza 2020-06-19 02:11:51 +02:00
parent 5f912b9882
commit 6c5f57690f
1 changed files with 3 additions and 0 deletions

View File

@ -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;