aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLSimulationData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLSimulationData.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index c09154d..c5d7c47 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -598,7 +598,7 @@ namespace OpenSim.Data.MySQL
598 // Legacy entry point for when terrain was always a 256x256 hieghtmap 598 // Legacy entry point for when terrain was always a 256x256 hieghtmap
599 public void StoreTerrain(double[,] ter, UUID regionID) 599 public void StoreTerrain(double[,] ter, UUID regionID)
600 { 600 {
601 StoreTerrain(new HeightmapTerrainData(ter), regionID); 601 StoreTerrain(new TerrainData(ter), regionID);
602 } 602 }
603 603
604 public void StoreTerrain(TerrainData terrData, UUID regionID) 604 public void StoreTerrain(TerrainData terrData, UUID regionID)
@@ -1463,7 +1463,7 @@ namespace OpenSim.Data.MySQL
1463 if (!(row["DynAttrs"] is System.DBNull)) 1463 if (!(row["DynAttrs"] is System.DBNull))
1464 prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); 1464 prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]);
1465 else 1465 else
1466 prim.DynAttrs = new DAMap(); 1466 prim.DynAttrs = null;
1467 1467
1468 if (!(row["KeyframeMotion"] is DBNull)) 1468 if (!(row["KeyframeMotion"] is DBNull))
1469 { 1469 {
@@ -1880,7 +1880,7 @@ namespace OpenSim.Data.MySQL
1880 else 1880 else
1881 cmd.Parameters.AddWithValue("Vehicle", String.Empty); 1881 cmd.Parameters.AddWithValue("Vehicle", String.Empty);
1882 1882
1883 if (prim.DynAttrs.CountNamespaces > 0) 1883 if (prim.DynAttrs != null && prim.DynAttrs.CountNamespaces > 0)
1884 cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); 1884 cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml());
1885 else 1885 else
1886 cmd.Parameters.AddWithValue("DynAttrs", null); 1886 cmd.Parameters.AddWithValue("DynAttrs", null);