Fix casting error for float type INI file parameter parsing.
parent
60de0bc3c2
commit
08fa0a6a8a
|
@ -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