aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLDataStore.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLDataStore.cs b/OpenSim/Data/MySQL/MySQLDataStore.cs
index af3f02a..07f4c10 100644
--- a/OpenSim/Data/MySQL/MySQLDataStore.cs
+++ b/OpenSim/Data/MySQL/MySQLDataStore.cs
@@ -743,7 +743,10 @@ namespace OpenSim.Data.MySQL
743 } 743 }
744 DataRow row = rawsettings[0]; 744 DataRow row = rawsettings[0];
745 745
746 return buildRegionSettings(row); 746 RegionSettings newSettings = buildRegionSettings(row);
747 newSettings.OnSave += StoreRegionSettings;
748
749 return newSettings;
747 } 750 }
748 } 751 }
749 752
@@ -1272,7 +1275,6 @@ namespace OpenSim.Data.MySQL
1272 private static RegionSettings buildRegionSettings(DataRow row) 1275 private static RegionSettings buildRegionSettings(DataRow row)
1273 { 1276 {
1274 RegionSettings newSettings = new RegionSettings(); 1277 RegionSettings newSettings = new RegionSettings();
1275 newSettings.OnSave += StoreRegionSettings;
1276 1278
1277 newSettings.RegionUUID = new LLUUID((string) row["regionUUID"]); 1279 newSettings.RegionUUID = new LLUUID((string) row["regionUUID"]);
1278 newSettings.BlockTerraform = Convert.ToBoolean(row["block_terraform"]); 1280 newSettings.BlockTerraform = Convert.ToBoolean(row["block_terraform"]);