diff options
author | Mandarinka Tasty | 2016-11-25 06:51:16 +0100 |
---|---|---|
committer | UbitUmarov | 2016-11-26 04:14:32 +0000 |
commit | d2bbd7ef2b31e84099ac401d88fc2a3193d81ed6 (patch) | |
tree | 8bfcfc5148913f5fe7fb4f28360fd2042de319d6 /OpenSim | |
parent | Fix in descriptions of: load xml, load xml2, save xml, save xml2 (diff) | |
download | opensim-SC_OLD-d2bbd7ef2b31e84099ac401d88fc2a3193d81ed6.zip opensim-SC_OLD-d2bbd7ef2b31e84099ac401d88fc2a3193d81ed6.tar.gz opensim-SC_OLD-d2bbd7ef2b31e84099ac401d88fc2a3193d81ed6.tar.bz2 opensim-SC_OLD-d2bbd7ef2b31e84099ac401d88fc2a3193d81ed6.tar.xz |
Fix in cmdparams.Length for: SavePrimsXml2 and SaveXml
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com>
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 5d21368..cf2bf33 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -1068,7 +1068,7 @@ namespace OpenSim | |||
1068 | /// <param name="cmdparams"></param> | 1068 | /// <param name="cmdparams"></param> |
1069 | protected void SavePrimsXml2(string module, string[] cmdparams) | 1069 | protected void SavePrimsXml2(string module, string[] cmdparams) |
1070 | { | 1070 | { |
1071 | if (cmdparams.Length > 5) | 1071 | if (cmdparams.Length > 4) |
1072 | { | 1072 | { |
1073 | SceneManager.SaveNamedPrimsToXml2(cmdparams[3], cmdparams[4]); | 1073 | SceneManager.SaveNamedPrimsToXml2(cmdparams[3], cmdparams[4]); |
1074 | } | 1074 | } |
@@ -1087,7 +1087,7 @@ namespace OpenSim | |||
1087 | { | 1087 | { |
1088 | MainConsole.Instance.Output("PLEASE NOTE, save-xml is DEPRECATED and may be REMOVED soon. If you are using this and there is some reason you can't use save-xml2, please file a mantis detailing the reason."); | 1088 | MainConsole.Instance.Output("PLEASE NOTE, save-xml is DEPRECATED and may be REMOVED soon. If you are using this and there is some reason you can't use save-xml2, please file a mantis detailing the reason."); |
1089 | 1089 | ||
1090 | if (cmdparams.Length > 0) | 1090 | if (cmdparams.Length > 2) |
1091 | { | 1091 | { |
1092 | SceneManager.SaveCurrentSceneToXml(cmdparams[2]); | 1092 | SceneManager.SaveCurrentSceneToXml(cmdparams[2]); |
1093 | } | 1093 | } |