From 74b5f6b14a7f95b0acddbef1ebda0d57537e266b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 14 May 2008 20:03:40 +0000 Subject: [PATCH] From: Dr Schofield * small patch that fixes a compiler warning (struct comparison against null again, my favourites) in LSL_BuiltIn_Commands. LSL_Types.key has a Boolean operator that can be used here. --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 78ae587ed6..abc4bcad31 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -615,7 +615,7 @@ namespace OpenSim.Region.ScriptEngine.Common { if ((script = sm.GetScript(m_localID, m_itemID)) != null) { - if (script.llDetectParams._key[0] != null) + if (script.llDetectParams._key[0]) { return new LLUUID(script.llDetectParams._key[0]); }