Fixed some comparisons of LLUUIDs to null.

Thanks to DrSchofld for pointing this out.
This commit is contained in:
Jeff Ames
2008-03-19 09:36:13 +00:00
parent d135dad051
commit a0e1be3280
6 changed files with 13 additions and 19 deletions

View File

@@ -3339,7 +3339,7 @@ namespace OpenSim.Region.ScriptEngine.Common
{
m_host.AddScriptLPS(1);
LLUUID landowner = World.GetLandOwner(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
if (landowner.Equals(null))
if (landowner == LLUUID.Zero)
{
return;
}
@@ -3355,7 +3355,7 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.AddScriptLPS(1);
LLUUID landowner = World.GetLandOwner(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
if(landowner.Equals(null))
if(landowner == LLUUID.Zero)
{
return;
}
@@ -4306,7 +4306,7 @@ namespace OpenSim.Region.ScriptEngine.Common
LLUUID reqID = httpScriptMod.
StartHttpRequest(m_localID, m_itemID, url, param, body);
if (!reqID.Equals(null))
if (reqID != LLUUID.Zero)
return reqID.ToString();
else
return null;