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

0.9.1.0-post-fixes
UbitUmarov 2019-01-10 21:49:38 +00:00
parent a1182cddd5
commit 43f4eca67c
1 changed files with 3 additions and 3 deletions

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;