diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcommon/lleventdispatcher.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/lleventdispatcher.cpp b/indra/llcommon/lleventdispatcher.cpp index 2ab006a173..e00cca366f 100644 --- a/indra/llcommon/lleventdispatcher.cpp +++ b/indra/llcommon/lleventdispatcher.cpp @@ -443,7 +443,8 @@ struct LLEventDispatcher::ArrayParamsDispatchEntry: public LLEventDispatcher::Pa      {          LLSD array(LLSD::emptyArray());          // Resize to number of arguments required -        array[mArity - 1] = LLSD(); +        if (mArity) +            array[mArity - 1] = LLSD();          llassert_always(array.size() == mArity);          meta["required"] = array;          return meta;  | 
