From eabbbcdff9c26f5d8e757e7103e63d004d606410 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 24 Jul 2010 09:26:05 +0000 Subject: Fixing a crash when using either BL_ArmatureBone.parent and BL_ArmatureBone.children. --- source/gameengine/Expressions/PyObjectPlus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/Expressions/PyObjectPlus.cpp') diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp index e2642566a80..32bf4ba95c4 100644 --- a/source/gameengine/Expressions/PyObjectPlus.cpp +++ b/source/gameengine/Expressions/PyObjectPlus.cpp @@ -278,7 +278,7 @@ PyObject *PyObjectPlus::py_get_attrdef(PyObject *self_py, const PyAttributeDef * // the attribute has no field correspondance, handover processing to function. if (attrdef->m_getFunction == NULL) return NULL; - return (*attrdef->m_getFunction)(ref, attrdef); + return (*attrdef->m_getFunction)(ptr, attrdef); } ptr += attrdef->m_offset; if (attrdef->m_length > 1) -- cgit v1.2.3