aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs25
1 files changed, 12 insertions, 13 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index cc4be73..afa9191 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -282,19 +282,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
282 { 282 {
283 m_Apis[api] = am.CreateApi(api); 283 m_Apis[api] = am.CreateApi(api);
284 m_Apis[api].Initialize(engine, part, m_LocalID, itemID); 284 m_Apis[api].Initialize(engine, part, m_LocalID, itemID);
285 } 285 }
286 286
287 try 287 try
288 { 288 {
289 if (dom != System.AppDomain.CurrentDomain) 289 if (dom != System.AppDomain.CurrentDomain)
290 m_Script = (IScript)dom.CreateInstanceAndUnwrap( 290 m_Script = (IScript)dom.CreateInstanceAndUnwrap(
291 Path.GetFileNameWithoutExtension(assembly), 291 Path.GetFileNameWithoutExtension(assembly),
292 "SecondLife.Script"); 292 "SecondLife.Script");
293 else 293 else
294 m_Script = (IScript)Assembly.Load( 294 m_Script = (IScript)Assembly.Load(
295 Path.GetFileNameWithoutExtension(assembly)).CreateInstance( 295 Path.GetFileNameWithoutExtension(assembly)).CreateInstance(
296 "SecondLife.Script"); 296 "SecondLife.Script");
297
298 297
299 //ILease lease = (ILease)RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass); 298 //ILease lease = (ILease)RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);
300 //RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass); 299 //RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);