minor: Add comment as to why we are pulcking plain old ints out of the LSL_List when converting values from LSL for modInvoke()
parent
e36799f515
commit
a1669be6c3
|
@ -361,6 +361,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];
|
||||||
|
// The int check exists because of the many plain old int script constants in ScriptBase which
|
||||||
|
// are not LSL_Integers.
|
||||||
else if (plist[i] is int)
|
else if (plist[i] is int)
|
||||||
result[i] = plist[i];
|
result[i] = plist[i];
|
||||||
else if (plist[i] is LSL_Float)
|
else if (plist[i] is LSL_Float)
|
||||||
|
|
Loading…
Reference in New Issue