diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 50dc91d..e435ac1 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -350,7 +350,10 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
350 | } | 350 | } |
351 | 351 | ||
352 | // zero out a heightmap array float array (single dimention [flattened])) | 352 | // zero out a heightmap array float array (single dimention [flattened])) |
353 | _heightmap = new float[514*514]; | 353 | if ((int)Constants.RegionSize == 256) |
354 | _heightmap = new float[514*514]; | ||
355 | else | ||
356 | _heightmap = new float[(((int)Constants.RegionSize + 2) * ((int)Constants.RegionSize + 2))]; | ||
354 | _watermap = new float[258 * 258]; | 357 | _watermap = new float[258 * 258]; |
355 | 358 | ||
356 | 359 | ||