mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Fix an omission in LSL that causes a viewer crash
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user