dont draw

master
Christopher Latza 2020-06-10 19:30:22 +02:00
parent 6556c68668
commit dd4e1677f9
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ namespace OpenSim.Modules.PathFinding
{ {
for (int Y = (int)_start.Y; Y < (int)_end.Y; Y++) for (int Y = (int)_start.Y; Y < (int)_end.Y; Y++)
{ {
_map.SetPixel(X, Y, _color); if(Y >= 0 && Y >= 0)
_map.SetPixel(X, Y, _color);
} }
} }
} }