From e88903f481fd5e3e27980749febea64924208573 Mon Sep 17 00:00:00 2001 From: "Teravus Ovares (Dan Olivares)" Date: Sat, 8 Aug 2009 10:38:53 -0400 Subject: [PATCH] * Fix one physics crash for regions larger then 512mx512m --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 50dc91d98c..e435ac1e8b 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -350,7 +350,10 @@ namespace OpenSim.Region.Physics.OdePlugin } // zero out a heightmap array float array (single dimention [flattened])) - _heightmap = new float[514*514]; + if ((int)Constants.RegionSize == 256) + _heightmap = new float[514*514]; + else + _heightmap = new float[(((int)Constants.RegionSize + 2) * ((int)Constants.RegionSize + 2))]; _watermap = new float[258 * 258];