diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneManager.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index 07c77aa..80634c0 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs | |||
@@ -66,7 +66,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
66 | { | 66 | { |
67 | if (m_currentScene == null) | 67 | if (m_currentScene == null) |
68 | { | 68 | { |
69 | return m_localScenes[0]; | 69 | if (m_localScenes.Count > 0) |
70 | { | ||
71 | return m_localScenes[0]; | ||
72 | } | ||
73 | else | ||
74 | { | ||
75 | return null; | ||
76 | } | ||
70 | } | 77 | } |
71 | else | 78 | else |
72 | { | 79 | { |