aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-20 16:24:36 +0000
committerMelanie Thielker2008-09-20 16:24:36 +0000
commit5a1be7835c663095207ef1e4494331c1c1e867bc (patch)
tree88e8b8246fbc6f25b15448aaef7414001862eddc /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentAdd <expire> tag to data snapshot to give the search server an idea (diff)
downloadopensim-SC_OLD-5a1be7835c663095207ef1e4494331c1c1e867bc.zip
opensim-SC_OLD-5a1be7835c663095207ef1e4494331c1c1e867bc.tar.gz
opensim-SC_OLD-5a1be7835c663095207ef1e4494331c1c1e867bc.tar.bz2
opensim-SC_OLD-5a1be7835c663095207ef1e4494331c1c1e867bc.tar.xz
XEngine: Fix llGetListEntryType to return the correct type for the LSL types.
Change serialization to omit types it can't deal with.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 0cfa06f..f49cf0c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4002,20 +4002,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4002 return 0; 4002 return 0;
4003 } 4003 }
4004 4004
4005 if (src.Data[index] is Int32) 4005 if (src.Data[index] is LSL_Types.LSLInteger || src.Data[index] is Int32)
4006 return 1; 4006 return 1;
4007 if (src.Data[index] is Double) 4007 if (src.Data[index] is LSL_Types.LSLFloat || src.Data[index] is Single || src.Data[index] is Double)
4008 return 2; 4008 return 2;
4009 if (src.Data[index] is String) 4009 if (src.Data[index] is LSL_Types.LSLString || src.Data[index] is String)
4010 { 4010 {
4011 UUID tuuid; 4011 UUID tuuid;
4012 if (UUID.TryParse(src.Data[index].ToString(), out tuuid)) 4012 if (UUID.TryParse(src.Data[index].ToString(), out tuuid))
4013 { 4013 {
4014 return 3; 4014 return 4;
4015 } 4015 }
4016 else 4016 else
4017 { 4017 {
4018 return 4; 4018 return 3;
4019 } 4019 }
4020 } 4020 }
4021 if (src.Data[index] is LSL_Types.Vector3) 4021 if (src.Data[index] is LSL_Types.Vector3)