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

GenericGridServerConcept
MW 2009-02-26 15:06:27 +00:00
parent 5b5b784599
commit 04a6c735d6
1 changed files with 8 additions and 1 deletions

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
{