diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c757cd088f..22443a9f80 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -8135,10 +8135,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api int length = buttons.Length; if (length < 1) { - Error("llDialog", "At least 1 button must be shown"); - return; + buttons.Add(new LSL_String("Ok")); + length = 1; } - if (length > 12) + else if (length > 12) { Error("llDialog", "No more than 12 buttons can be shown"); return;