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