Fix an omission in LSL that causes a viewer crash

mysql-performance
Melanie 2009-12-30 00:36:16 +00:00
parent 0b5cdc539c
commit 917fad40da
1 changed files with 5 additions and 0 deletions

View File

@ -6260,6 +6260,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
LSLError("First parameter to llDialog needs to be a key");
return;
}
if (buttons.Length < 1)
{
LSLError("No less than 1 button can be shown");
return;
}
if (buttons.Length > 12)
{
LSLError("No more than 12 buttons can be shown");