* Fix one physics crash for regions larger then 512mx512m

arthursv
Teravus Ovares (Dan Olivares) 2009-08-08 10:38:53 -04:00
parent b5727a1d77
commit e88903f481
1 changed files with 4 additions and 1 deletions

View File

@ -350,7 +350,10 @@ namespace OpenSim.Region.Physics.OdePlugin
} }
// zero out a heightmap array float array (single dimention [flattened])) // zero out a heightmap array float array (single dimention [flattened]))
if ((int)Constants.RegionSize == 256)
_heightmap = new float[514*514]; _heightmap = new float[514*514];
else
_heightmap = new float[(((int)Constants.RegionSize + 2) * ((int)Constants.RegionSize + 2))];
_watermap = new float[258 * 258]; _watermap = new float[258 * 258];