Fix casting error for float type INI file parameter parsing.

varregion
Robert Adams 2014-01-19 07:26:55 -08:00
parent d466446df3
commit 4fb3d314b8
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ namespace OpenSim.Framework
else if (typeof(T) == typeof(Int32)) else if (typeof(T) == typeof(Int32))
val = cnf.GetInt(varname, (int)val); val = cnf.GetInt(varname, (int)val);
else if (typeof(T) == typeof(float)) else if (typeof(T) == typeof(float))
val = cnf.GetFloat(varname, (int)val); val = cnf.GetFloat(varname, (float)val);
else else
m_log.ErrorFormat("[UTIL]: Unhandled type {0}", typeof(T)); m_log.ErrorFormat("[UTIL]: Unhandled type {0}", typeof(T));
} }