system ints can end up in LSL lists, which can cause counter-intuitive unknown list element type errors in ConvertFromLSL (via modInvoke)

integration
SignpostMarv 2012-10-23 11:34:43 +01:00 committed by Justin Clark-Casey (justincc)
parent 2fb89b5aac
commit 01972cc9e8
1 changed files with 2 additions and 0 deletions

View File

@ -359,6 +359,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
result[i] = (string)(LSL_String)plist[i]; result[i] = (string)(LSL_String)plist[i];
else if (plist[i] is LSL_Integer) else if (plist[i] is LSL_Integer)
result[i] = (int)(LSL_Integer)plist[i]; result[i] = (int)(LSL_Integer)plist[i];
else if (plist[i] is int)
result[i] = plist[i];
else if (plist[i] is LSL_Float) else if (plist[i] is LSL_Float)
result[i] = (float)(LSL_Float)plist[i]; result[i] = (float)(LSL_Float)plist[i];
else if (plist[i] is LSL_Key) else if (plist[i] is LSL_Key)