mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
Add check in SceneManager to stop opensim.exe crashing if no regions/scenes were loaded.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user