Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:
XEngine missing string constructor for LSLInteger and LSLFloat0.6.0-stable
parent
328ab79b78
commit
9a6bdd9701
|
@ -1254,6 +1254,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
value = (int)d;
|
value = (int)d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LSLInteger(string s)
|
||||||
|
{
|
||||||
|
value = (int)double.Parse(s);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Operators
|
#region Operators
|
||||||
|
@ -1451,6 +1456,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
this.value = d;
|
this.value = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LSLFloat(string s)
|
||||||
|
{
|
||||||
|
this.value = double.Parse(s);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Operators
|
#region Operators
|
||||||
|
|
Loading…
Reference in New Issue