aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 11345c3..cae0b41 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -706,17 +706,16 @@ namespace OpenSim
706 break; 706 break;
707 707
708 case "export-map": 708 case "export-map":
709 if (m_sceneManager.CurrentScene != null) 709
710 {
711 if (cmdparams.Length > 0) 710 if (cmdparams.Length > 0)
712 { 711 {
713 m_sceneManager.CurrentScene.ExportWorldMap(cmdparams[0]); 712 m_sceneManager.CurrentOrFirstScene.ExportWorldMap(cmdparams[0]);
714 } 713 }
715 else 714 else
716 { 715 {
717 m_sceneManager.CurrentScene.ExportWorldMap("exportmap.jpg"); 716 m_sceneManager.CurrentOrFirstScene.ExportWorldMap("exportmap.jpg");
718 } 717 }
719 } 718
720 break; 719 break;
721 720
722 default: 721 default: