mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Allow HG and other scene presences not linked to a user account to function.
This commit is contained in:
@@ -773,7 +773,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_localId = m_scene.AllocateLocalId();
|
||||
|
||||
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid);
|
||||
m_userFlags = account.UserFlags;
|
||||
if (account != null)
|
||||
m_userFlags = account.UserFlags;
|
||||
else
|
||||
m_userFlags = 0;
|
||||
|
||||
if (account != null)
|
||||
UserLevel = account.UserLevel;
|
||||
|
||||
Reference in New Issue
Block a user