Add check in SceneManager to stop opensim.exe crashing if no regions/scenes were loaded.

This commit is contained in:
MW
2009-02-26 15:06:27 +00:00
parent 5b5b784599
commit 04a6c735d6

View File

@@ -66,7 +66,14 @@ namespace OpenSim.Region.Framework.Scenes
{
if (m_currentScene == null)
{
return m_localScenes[0];
if (m_localScenes.Count > 0)
{
return m_localScenes[0];
}
else
{
return null;
}
}
else
{