From bb1823a7adeac73826c255f23137a22176ca102c Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 28 Feb 2009 13:16:07 +0000 Subject: [PATCH] fixing the last commit --- OpenSim/Framework/Util.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 5ac6754950..1d82644caf 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -944,15 +944,15 @@ namespace OpenSim.Framework { fieldInfo.SetValue(settingsClass, config.Get(fieldInfo.Name, (string)fieldInfo.GetValue(settingsClass))); } - if (fieldInfo.FieldType == typeof(System.Boolean)) + else if (fieldInfo.FieldType == typeof(System.Boolean)) { fieldInfo.SetValue(settingsClass, config.GetBoolean(fieldInfo.Name, (bool)fieldInfo.GetValue(settingsClass))); } - if (fieldInfo.FieldType == typeof(System.Int32)) + else if (fieldInfo.FieldType == typeof(System.Int32)) { fieldInfo.SetValue(settingsClass, config.GetInt(fieldInfo.Name, (int)fieldInfo.GetValue(settingsClass))); } - if (fieldInfo.FieldType == typeof(System.Single)) + else if (fieldInfo.FieldType == typeof(System.Single)) { fieldInfo.SetValue(settingsClass, config.GetFloat(fieldInfo.Name, (float)fieldInfo.GetValue(settingsClass))); } @@ -967,15 +967,15 @@ namespace OpenSim.Framework { propInfo.SetValue(settingsClass, config.Get(propInfo.Name, (string)propInfo.GetValue(settingsClass, null)), null); } - if (propInfo.PropertyType == typeof(System.Boolean)) + else if (propInfo.PropertyType == typeof(System.Boolean)) { propInfo.SetValue(settingsClass, config.GetBoolean(propInfo.Name, (bool)propInfo.GetValue(settingsClass, null)), null); } - if (propInfo.PropertyType == typeof(System.Int32)) + else if (propInfo.PropertyType == typeof(System.Int32)) { propInfo.SetValue(settingsClass, config.GetInt(propInfo.Name, (int)propInfo.GetValue(settingsClass, null)), null); } - if (propInfo.PropertyType == typeof(System.Single)) + else if (propInfo.PropertyType == typeof(System.Single)) { propInfo.SetValue(settingsClass, config.GetFloat(propInfo.Name, (float)propInfo.GetValue(settingsClass, null)), null); }