diff --git a/OpenSim/Data/MySQL/MySQLDataStore.cs b/OpenSim/Data/MySQL/MySQLDataStore.cs index 5bb8f7284a..af3f02a330 100644 --- a/OpenSim/Data/MySQL/MySQLDataStore.cs +++ b/OpenSim/Data/MySQL/MySQLDataStore.cs @@ -1272,7 +1272,7 @@ namespace OpenSim.Data.MySQL private static RegionSettings buildRegionSettings(DataRow row) { RegionSettings newSettings = new RegionSettings(); - rs.OnSave += StoreRegionSettings; + newSettings.OnSave += StoreRegionSettings; newSettings.RegionUUID = new LLUUID((string) row["regionUUID"]); newSettings.BlockTerraform = Convert.ToBoolean(row["block_terraform"]);