Fix some crashes

This commit is contained in:
hondacrx
2021-05-11 15:27:28 -04:00
parent 3731817668
commit 6e896c8829
5 changed files with 8 additions and 3 deletions
+3
View File
@@ -3790,6 +3790,9 @@ namespace Game.Maps
private Grid GetGrid(uint x, uint y)
{
if (x > MapConst.MaxGrids || y > MapConst.MaxGrids)
return null;
return i_grids[x][y];
}