Fix casting error for float type INI file parameter parsing.
parent
d466446df3
commit
4fb3d314b8
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue