diff options
author | Robert Adams | 2014-01-19 07:26:55 -0800 |
---|---|---|
committer | Robert Adams | 2014-01-19 07:26:55 -0800 |
commit | 08fa0a6a8ae075742d321dd998187e85722650f8 (patch) | |
tree | 0830fbdb58c0a2104cf1734d87f94f8c7c97e7f7 /OpenSim/Framework/Util.cs | |
parent | varregion: split up generated maptile images for storage in map. This (diff) | |
download | opensim-SC-08fa0a6a8ae075742d321dd998187e85722650f8.zip opensim-SC-08fa0a6a8ae075742d321dd998187e85722650f8.tar.gz opensim-SC-08fa0a6a8ae075742d321dd998187e85722650f8.tar.bz2 opensim-SC-08fa0a6a8ae075742d321dd998187e85722650f8.tar.xz |
Fix casting error for float type INI file parameter parsing.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index cebba46..7bc8176 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1031,7 +1031,7 @@ namespace OpenSim.Framework | |||
1031 | else if (typeof(T) == typeof(Int32)) | 1031 | else if (typeof(T) == typeof(Int32)) |
1032 | val = cnf.GetInt(varname, (int)val); | 1032 | val = cnf.GetInt(varname, (int)val); |
1033 | else if (typeof(T) == typeof(float)) | 1033 | else if (typeof(T) == typeof(float)) |
1034 | val = cnf.GetFloat(varname, (int)val); | 1034 | val = cnf.GetFloat(varname, (float)val); |
1035 | else | 1035 | else |
1036 | m_log.ErrorFormat("[UTIL]: Unhandled type {0}", typeof(T)); | 1036 | m_log.ErrorFormat("[UTIL]: Unhandled type {0}", typeof(T)); |
1037 | } | 1037 | } |