dont draw outsite the image
parent
dd4e1677f9
commit
4a47b2ab35
|
@ -173,7 +173,7 @@ namespace OpenSim.Modules.PathFinding
|
|||
{
|
||||
for (int Y = (int)_start.Y; Y < (int)_end.Y; Y++)
|
||||
{
|
||||
if(Y >= 0 && Y >= 0)
|
||||
if(Y >= 0 && Y >= 0 && X > _map.Size.Height && Y > _map.Size.Width)
|
||||
_map.SetPixel(X, Y, _color);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue