Allow HG and other scene presences not linked to a user account to function.

remove-scene-viewer
Melanie 2011-11-06 20:00:03 +00:00
parent bd10d14bbd
commit 0bf757e42b
1 changed files with 4 additions and 1 deletions

View File

@ -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);
if (account != null)
m_userFlags = account.UserFlags;
else
m_userFlags = 0;
if (account != null)
UserLevel = account.UserLevel;