diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index 1a86fdee84..b8e14eecd5 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs @@ -1057,10 +1057,10 @@ namespace OpenSim.Data.SQLite if (rowToCheck["LandUUID"].ToString() == parcel.LandData.GlobalID.ToString()) rowsToDelete.Add(rowToCheck); } - for (int iter = 0; iter < rowsToDelete.Count; iter++) - landaccesslist.Rows.Remove(rowsToDelete[iter]); + for (int iter = 0; iter < rowsToDelete.Count; ++iter) + rowsToDelete[iter].Delete(); + - rowsToDelete.Clear(); foreach (LandAccessEntry entry in parcel.LandData.ParcelAccessList) { DataRow newAccessRow = landaccesslist.NewRow();