diff options
author | Melanie | 2009-12-30 00:36:16 +0000 |
---|---|---|
committer | Melanie | 2009-12-30 00:36:16 +0000 |
commit | 6a4c578e5eba688516af2b0123869bb43e663eda (patch) | |
tree | dfee01f6d3fb910edba09adf05f98205e513d41f /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Fixed a couple of bugs that were bombing the data migration. (diff) | |
download | opensim-SC-6a4c578e5eba688516af2b0123869bb43e663eda.zip opensim-SC-6a4c578e5eba688516af2b0123869bb43e663eda.tar.gz opensim-SC-6a4c578e5eba688516af2b0123869bb43e663eda.tar.bz2 opensim-SC-6a4c578e5eba688516af2b0123869bb43e663eda.tar.xz |
Fix an omission in LSL that causes a viewer crash
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 2b6d9bd..6102504 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6260,6 +6260,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6260 | LSLError("First parameter to llDialog needs to be a key"); | 6260 | LSLError("First parameter to llDialog needs to be a key"); |
6261 | return; | 6261 | return; |
6262 | } | 6262 | } |
6263 | if (buttons.Length < 1) | ||
6264 | { | ||
6265 | LSLError("No less than 1 button can be shown"); | ||
6266 | return; | ||
6267 | } | ||
6263 | if (buttons.Length > 12) | 6268 | if (buttons.Length > 12) |
6264 | { | 6269 | { |
6265 | LSLError("No more than 12 buttons can be shown"); | 6270 | LSLError("No more than 12 buttons can be shown"); |