diff options
author | CasperW | 2010-02-15 22:22:36 +0100 |
---|---|---|
committer | CasperW | 2010-02-15 22:22:36 +0100 |
commit | af2d20c5fa0403c6cae1008eda3179acc4694d7f (patch) | |
tree | 87c0433722dc33f98a8d535874299374e0cf679b /OpenSim/Region/ScriptEngine | |
parent | Merge branch 'master' of ssh://TOR/var/git/careminster (diff) | |
download | opensim-SC-af2d20c5fa0403c6cae1008eda3179acc4694d7f.zip opensim-SC-af2d20c5fa0403c6cae1008eda3179acc4694d7f.tar.gz opensim-SC-af2d20c5fa0403c6cae1008eda3179acc4694d7f.tar.bz2 opensim-SC-af2d20c5fa0403c6cae1008eda3179acc4694d7f.tar.xz |
Fix an inconsistency in llSetPayPrice between SL and OS behaviour
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-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; |