mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
a few more test changes and cosmetics
This commit is contained in:
@@ -5287,7 +5287,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
linknumber -= (m_parts.Count + 1);
|
||||
lock (m_sittingAvatars)
|
||||
{
|
||||
if (linknumber >= 0 && linknumber < m_sittingAvatars.Count)
|
||||
if (linknumber < m_sittingAvatars.Count && linknumber >= 0)
|
||||
return m_sittingAvatars[linknumber];
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -5755,7 +5755,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
int pos = 2;
|
||||
while(--count >= 0)
|
||||
{
|
||||
UUID id = new UUID(data, pos);
|
||||
UUID id = new(data, pos);
|
||||
if(id.IsZero())
|
||||
break;
|
||||
pos += 16;
|
||||
|
||||
Reference in New Issue
Block a user