diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandObject.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index af19ca3..57fa4d9 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -120,6 +120,12 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
120 | 120 | ||
121 | #region Constructors | 121 | #region Constructors |
122 | 122 | ||
123 | public LandObject(LandData landData, Scene scene) | ||
124 | { | ||
125 | LandData = landData.Copy(); | ||
126 | m_scene = scene; | ||
127 | } | ||
128 | |||
123 | public LandObject(UUID owner_id, bool is_group_owned, Scene scene) | 129 | public LandObject(UUID owner_id, bool is_group_owned, Scene scene) |
124 | { | 130 | { |
125 | m_scene = scene; | 131 | m_scene = scene; |
@@ -163,12 +169,8 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
163 | 169 | ||
164 | public ILandObject Copy() | 170 | public ILandObject Copy() |
165 | { | 171 | { |
166 | ILandObject newLand = new LandObject(LandData.OwnerID, LandData.IsGroupOwned, m_scene); | 172 | ILandObject newLand = new LandObject(LandData, m_scene); |
167 | |||
168 | //Place all new variables here! | ||
169 | newLand.LandBitmap = (bool[,]) (LandBitmap.Clone()); | 173 | newLand.LandBitmap = (bool[,]) (LandBitmap.Clone()); |
170 | newLand.LandData = LandData.Copy(); | ||
171 | |||
172 | return newLand; | 174 | return newLand; |
173 | } | 175 | } |
174 | 176 | ||