mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
avoid a null ref
This commit is contained in:
@@ -2152,7 +2152,8 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
|
||||
extLandData.LandData = extLandObject.LandData;
|
||||
extLandData.RegionAccess = m_scene.RegionInfo.AccessLevel;
|
||||
data = extLandData;
|
||||
if (extLandData.LandData != null)
|
||||
data = extLandData;
|
||||
break;
|
||||
}
|
||||
else
|
||||
@@ -2161,7 +2162,8 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
extLandData.LandData = landService.GetLandData(m_scene.RegionInfo.ScopeID,
|
||||
extLandData.RegionHandle, extLandData.X, extLandData.Y,
|
||||
out extLandData.RegionAccess);
|
||||
data = extLandData;
|
||||
if (extLandData.LandData != null)
|
||||
data = extLandData;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user