mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Finally make attachments stay put. Randomize local ID generation to
prevent adjacent sims from using identical Local IDs for the attachment Thanks to Mana Janus (Hippo Viewer) for providing the crucial bit of information, namely that, due to a bug in the viewer, adjacent sims can't use the same local ids.
This commit is contained in:
@@ -556,7 +556,12 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
}
|
||||
lock (m_landList)
|
||||
{
|
||||
return m_landList[m_landIDList[x, y]];
|
||||
// Corner case. If an autoreturn happens during sim startup
|
||||
// we will come here with the list uninitialized
|
||||
//
|
||||
if (m_landList.ContainsKey(m_landIDList[x, y]))
|
||||
return m_landList[m_landIDList[x, y]];
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user