diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs index d1e2328..f07ae31 100644 --- a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs | |||
@@ -183,6 +183,11 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
183 | 183 | ||
184 | Vector3 pos = obj.AbsolutePosition; | 184 | Vector3 pos = obj.AbsolutePosition; |
185 | ILandObject landObject = m_Scene.LandChannel.GetLandObject(pos.X, pos.Y); | 185 | ILandObject landObject = m_Scene.LandChannel.GetLandObject(pos.X, pos.Y); |
186 | |||
187 | // If for some reason there is no land object (perhaps the object is out of bounds) then we can't count it | ||
188 | if (landObject == null) | ||
189 | return; | ||
190 | |||
186 | LandData landData = landObject.LandData; | 191 | LandData landData = landObject.LandData; |
187 | 192 | ||
188 | // m_log.DebugFormat( | 193 | // m_log.DebugFormat( |