diff --git a/src/DataValue.cs b/src/DataValue.cs index b9d0703..19acb69 100644 --- a/src/DataValue.cs +++ b/src/DataValue.cs @@ -127,12 +127,10 @@ namespace OpenSim.Modules.DataValue try { - DataValueScriptFunctions _scriptFunktions = new DataValueScriptFunctions(); - - m_scriptModule.RegisterScriptInvocation(_scriptFunktions, "osGetDataValue"); - m_scriptModule.RegisterScriptInvocation(_scriptFunktions, "osSetDataValue"); - m_scriptModule.RegisterScriptInvocation(_scriptFunktions, "osDeleteDataValue"); - m_scriptModule.RegisterScriptInvocation(_scriptFunktions, "osCheckDataValue"); + m_scriptModule.RegisterScriptInvocation(this, "osGetDataValue"); + m_scriptModule.RegisterScriptInvocation(this, "osSetDataValue"); + m_scriptModule.RegisterScriptInvocation(this, "osDeleteDataValue"); + m_scriptModule.RegisterScriptInvocation(this, "osCheckDataValue"); } catch (Exception e) {