From 8bd1f1c7c3d447466f5b599decff86797f8bbd55 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 9 Apr 2008 15:36:10 +0000 Subject: * Put explicit braces in for single line blocks --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 03851b6..50bd386 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -460,12 +460,18 @@ namespace OpenSim.Region.ScriptEngine.Common IScript script = null; if ((sm = m_ScriptEngine.m_ScriptManager) != null) + { if (sm.Scripts.ContainsKey(m_localID)) + { if ((script = sm.GetScript(m_localID, m_itemID)) != null) + { if (script.llDetectParams._key[0] != null) - return new LLUUID( - script.llDetectParams._key[0] - ); + { + return new LLUUID(script.llDetectParams._key[0]); + } + } + } + } } return LLUUID.Zero; } -- cgit v1.1