diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 9db8ca0..824073b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -8968,9 +8968,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8968 | m_host.AddScriptLPS(1); | 8968 | m_host.AddScriptLPS(1); |
8969 | 8969 | ||
8970 | if (quick_pay_buttons.Data.Length < 4) | 8970 | if (quick_pay_buttons.Data.Length < 4) |
8971 | { | 8971 | { |
8972 | LSLError("List must have at least 4 elements"); | 8972 | int x; |
8973 | return; | 8973 | for (x=quick_pay_buttons.Data.Length; x<= 4; x++) |
8974 | { | ||
8975 | quick_pay_buttons.Add(ScriptBaseClass.PAY_HIDE); | ||
8976 | } | ||
8974 | } | 8977 | } |
8975 | int[] nPrice = new int[5]; | 8978 | int[] nPrice = new int[5]; |
8976 | nPrice[0]=price; | 8979 | nPrice[0]=price; |