diff --git a/lib/python/pythonlanguage.cpp b/lib/python/pythonlanguage.cpp index bb3c80c9d..ff76d35f7 100644 --- a/lib/python/pythonlanguage.cpp +++ b/lib/python/pythonlanguage.cpp @@ -291,7 +291,7 @@ PyObject *PythonLanguage::PyCallNativeFunction(PyObject *self, PyObject *args) char *name = PyString_AsString(self); - ScriptFunction::Ptr function = ScriptFunction::GetByName(name); + ScriptFunction::Ptr function = ScriptFunctionRegistry::GetInstance()->GetItem(name); vector arguments;