Do a proper null check to avoid the overloaded operator == trap

avinationmerge
Melanie 2012-08-15 23:58:39 +02:00
parent c313de630f
commit 684f8208d9
1 changed files with 1 additions and 1 deletions

View File

@ -7785,7 +7785,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
foreach (SceneObjectPart part in parts)
remaining = SetPrimParams(part, rules);
while(remaining != null && remaining.Length > 2)
while((object)remaining != null && remaining.Length > 2)
{
linknumber = remaining.GetLSLIntegerItem(0);
rules = remaining.GetSublist(1,-1);