Fix problem with modInvoke defined integer constants being build into

scripts as boxed integers rather than proper reference to a new LSLInteger.
This fixes an exception when using a registered integer constant in
a script.
This commit is contained in:
Robert Adams
2013-08-02 09:44:01 -07:00
parent 07e4958b19
commit 87ee0c395e
2 changed files with 3 additions and 3 deletions

View File

@@ -937,7 +937,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
{
string retval = null;
if (value is int)
retval = ((int)value).ToString();
retval = String.Format("new LSL_Types.LSLInteger({0})",((int)value).ToString());
else if (value is float)
retval = String.Format("new LSL_Types.LSLFloat({0})",((float)value).ToString());
else if (value is string)