mantis 8447: empty buttons list in llDialog now shows Ok button

This commit is contained in:
UbitUmarov
2019-01-10 21:49:38 +00:00
parent a1182cddd5
commit 43f4eca67c

View File

@@ -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;