From 2a1bc318b0db431f88a45735e58f15aad7316962 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 26 Jul 2008 18:54:59 +0000 Subject: The hazards if unclean sourc trees. Yours truly got bitten this time. Re-fix the re-fix from a clean build. This makes the region based settings work as advertised --- OpenSim/Data/MySQL/MySQLDataStore.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim') 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 } DataRow row = rawsettings[0]; - return buildRegionSettings(row); + RegionSettings newSettings = buildRegionSettings(row); + newSettings.OnSave += StoreRegionSettings; + + return newSettings; } } @@ -1272,7 +1275,6 @@ namespace OpenSim.Data.MySQL private static RegionSettings buildRegionSettings(DataRow row) { RegionSettings newSettings = new RegionSettings(); - newSettings.OnSave += StoreRegionSettings; newSettings.RegionUUID = new LLUUID((string) row["regionUUID"]); newSettings.BlockTerraform = Convert.ToBoolean(row["block_terraform"]); -- cgit v1.1