Fix casting error for float type INI file parameter parsing.

This commit is contained in:
Robert Adams
2014-01-19 07:26:55 -08:00
parent 60de0bc3c2
commit 08fa0a6a8a

View File

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