diff options
author | Robert Adams | 2013-08-02 09:44:01 -0700 |
---|---|---|
committer | Robert Adams | 2013-08-02 09:44:01 -0700 |
commit | 87ee0c395ed82f27c2a52b5023d8036eb7e355c9 (patch) | |
tree | 6e74111abe0a2eb856f0ddcf31d5bab79e22b3e6 /OpenSim/Region/ScriptEngine/Shared/CodeTools | |
parent | Turn off edit beams when object is derezed while being edited. (mantis #6722) (diff) | |
download | opensim-SC_OLD-87ee0c395ed82f27c2a52b5023d8036eb7e355c9.zip opensim-SC_OLD-87ee0c395ed82f27c2a52b5023d8036eb7e355c9.tar.gz opensim-SC_OLD-87ee0c395ed82f27c2a52b5023d8036eb7e355c9.tar.bz2 opensim-SC_OLD-87ee0c395ed82f27c2a52b5023d8036eb7e355c9.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index 9e32f40..6aa717d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | |||
@@ -937,7 +937,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
937 | { | 937 | { |
938 | string retval = null; | 938 | string retval = null; |
939 | if (value is int) | 939 | if (value is int) |
940 | retval = ((int)value).ToString(); | 940 | retval = String.Format("new LSL_Types.LSLInteger({0})",((int)value).ToString()); |
941 | else if (value is float) | 941 | else if (value is float) |
942 | retval = String.Format("new LSL_Types.LSLFloat({0})",((float)value).ToString()); | 942 | retval = String.Format("new LSL_Types.LSLFloat({0})",((float)value).ToString()); |
943 | else if (value is string) | 943 | else if (value is string) |