Add check in SceneManager to stop opensim.exe crashing if no regions/scenes were loaded.
parent
5b5b784599
commit
04a6c735d6
|
@ -65,10 +65,17 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
get
|
||||
{
|
||||
if (m_currentScene == null)
|
||||
{
|
||||
if (m_localScenes.Count > 0)
|
||||
{
|
||||
return m_localScenes[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_currentScene;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue