mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
From: Dr Schofield <hud@zurich.ibm.com>
* 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.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user