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

This commit is contained in:
Melanie
2011-11-06 20:00:03 +00:00
parent bd10d14bbd
commit 0bf757e42b

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