Made some LSL_Constant or LS_Constant raw int values

bulletsim
Makopoppo 2011-07-07 23:36:41 +09:00 committed by Justin Clark-Casey (justincc)
parent e7abf834d1
commit 04f8d0e45d
1 changed files with 7 additions and 2 deletions

View File

@ -1741,8 +1741,13 @@ namespace OpenSim.Region.ScriptEngine.Shared
public override bool Equals(Object o)
{
if (!(o is LSLInteger))
return false;
if (!(o is LSLInteger)) {
if(o is int) {
return value == (int)o;
} else {
return false;
}
}
return value == ((LSLInteger)o).value;
}