mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Add a + operator to LSLString, otherwise you will end up with CIL strings if
you have expressions with strings.
This commit is contained in:
@@ -1346,6 +1346,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
return s1.m_string != s2;
|
||||
}
|
||||
|
||||
public static LSLString operator +(LSLString s1, LSLString s2)
|
||||
{
|
||||
return new LSLString(s1.m_string + s2.m_string);
|
||||
}
|
||||
|
||||
public static explicit operator double(LSLString s)
|
||||
{
|
||||
return Convert.ToDouble(s.m_string);
|
||||
|
||||
Reference in New Issue
Block a user