aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 7c878b8..967b835 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -105,7 +105,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
105 public class OSSL_Api : MarshalByRefObject, IOSSL_Api, IScriptApi 105 public class OSSL_Api : MarshalByRefObject, IOSSL_Api, IScriptApi
106 { 106 {
107 internal IScriptEngine m_ScriptEngine; 107 internal IScriptEngine m_ScriptEngine;
108 internal ILSL_Api m_LSL_Api; // get a reference to the LSL API so we can call methods housed there 108 internal ILSL_Api m_LSL_Api = null; // get a reference to the LSL API so we can call methods housed there
109 internal SceneObjectPart m_host; 109 internal SceneObjectPart m_host;
110 internal uint m_localID; 110 internal uint m_localID;
111 internal UUID m_itemID; 111 internal UUID m_itemID;
@@ -183,6 +183,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
183 throw new Exception("OSSL Runtime Error: " + msg); 183 throw new Exception("OSSL Runtime Error: " + msg);
184 } 184 }
185 185
186 private void InitLSL()
187 {
188 if (m_LSL_Api != null)
189 return;
190
191 m_LSL_Api = (ILSL_Api)m_ScriptEngine.GetApi(m_itemID, "LSL");
192 }
193
186 // 194 //
187 //Dumps an error message on the debug console. 195 //Dumps an error message on the debug console.
188 // 196 //