aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/DwellModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/DwellModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/DwellModule.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/DwellModule.cs b/OpenSim/Region/CoreModules/World/Land/DwellModule.cs
index 70c6028..5f1eab2 100644
--- a/OpenSim/Region/CoreModules/World/Land/DwellModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/DwellModule.cs
@@ -120,6 +120,9 @@ namespace OpenSim.Region.CoreModules.World.Land
120 120
121 public int GetDwell(UUID parcelID) 121 public int GetDwell(UUID parcelID)
122 { 122 {
123 ILandObject parcel = m_scene.LandChannel.GetLandObject(parcelID);
124 if (parcel != null && parcel.LandData != null)
125 return (int)parcel.LandData.Dwell;
123 return 0; 126 return 0;
124 } 127 }
125 } 128 }