aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandObject.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index f41bdac..bb06996 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -44,7 +44,8 @@ namespace OpenSim.Region.CoreModules.World.Land
44 #region Member Variables 44 #region Member Variables
45 45
46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
47 private bool[,] m_landBitmap = new bool[64,64]; 47 private const int landArrayMax = ((int)((int)Constants.RegionSize / 4) >= 64) ? (int)((int)Constants.RegionSize / 4) : 64;
48 private bool[,] m_landBitmap = new bool[landArrayMax,landArrayMax];
48 49
49 protected LandData m_landData = new LandData(); 50 protected LandData m_landData = new LandData();
50 protected Scene m_scene; 51 protected Scene m_scene;
@@ -630,7 +631,7 @@ namespace OpenSim.Region.CoreModules.World.Land
630 631
631 private bool[,] convertBytesToLandBitmap() 632 private bool[,] convertBytesToLandBitmap()
632 { 633 {
633 bool[,] tempConvertMap = new bool[64,64]; 634 bool[,] tempConvertMap = new bool[landArrayMax, landArrayMax];
634 tempConvertMap.Initialize(); 635 tempConvertMap.Initialize();
635 byte tempByte = 0; 636 byte tempByte = 0;
636 int x = 0, y = 0, i = 0, bitNum = 0; 637 int x = 0, y = 0, i = 0, bitNum = 0;