diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Capabilities/LLSDHelpers.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Capabilities/LLSDHelpers.cs')
-rw-r--r-- | OpenSim/Capabilities/LLSDHelpers.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Capabilities/LLSDHelpers.cs b/OpenSim/Capabilities/LLSDHelpers.cs index 8f1a40e..d582267 100644 --- a/OpenSim/Capabilities/LLSDHelpers.cs +++ b/OpenSim/Capabilities/LLSDHelpers.cs | |||
@@ -157,6 +157,11 @@ namespace OpenSim.Framework.Capabilities | |||
157 | // the LLSD map/array types in the array need to be deserialised | 157 | // the LLSD map/array types in the array need to be deserialised |
158 | // but first we need to know the right class to deserialise them into. | 158 | // but first we need to know the right class to deserialise them into. |
159 | } | 159 | } |
160 | else if(enumerator.Value is Boolean && field.FieldType == typeof(int) ) | ||
161 | { | ||
162 | int i = (bool)enumerator.Value ? 1 : 0; | ||
163 | field.SetValue(obj, (object)i); | ||
164 | } | ||
160 | else | 165 | else |
161 | { | 166 | { |
162 | field.SetValue(obj, enumerator.Value); | 167 | field.SetValue(obj, enumerator.Value); |