From 1c533eb5200d5a2443731abba55b6cd34eb067f7 Mon Sep 17 00:00:00 2001 From: PixelTomsen Date: Tue, 21 Feb 2012 20:57:51 +0100 Subject: Fix:LINK_ROOT flag for llGetLinkName() by SinglePrim --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0bdd84a..61a6907 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3845,7 +3845,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // Single prim if (m_host.LinkNum == 0) { - if (linknum == 0) + if (linknum == 0 || linknum == ScriptBaseClass.LINK_ROOT) return m_host.Name; else return UUID.Zero.ToString(); -- cgit v1.1