aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-08 22:58:34 +0100
committerJustin Clark-Casey (justincc)2012-05-08 23:05:01 +0100
commit01b78235db71994ba3e37bd6ea297bed7e4576b9 (patch)
tree91a89fd18939632973180287f78085723b6b9b9c /OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
parentPerform SceneGraph.DuplicateObject() under existing m_updateLock already used... (diff)
downloadopensim-SC-01b78235db71994ba3e37bd6ea297bed7e4576b9.zip
opensim-SC-01b78235db71994ba3e37bd6ea297bed7e4576b9.tar.gz
opensim-SC-01b78235db71994ba3e37bd6ea297bed7e4576b9.tar.bz2
opensim-SC-01b78235db71994ba3e37bd6ea297bed7e4576b9.tar.xz
Instead of constantly looking up unchanging self item in script code, pass in self item on initialization.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 2c8af81..dd47393 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -232,7 +232,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
232 foreach (string api in am.GetApis()) 232 foreach (string api in am.GetApis())
233 { 233 {
234 m_Apis[api] = am.CreateApi(api); 234 m_Apis[api] = am.CreateApi(api);
235 m_Apis[api].Initialize(engine, part, LocalID, itemID); 235 m_Apis[api].Initialize(engine, part, LocalID, ScriptTask);
236 } 236 }
237 237
238 try 238 try