game engine python api
[blender.git] / source / gameengine / Ketsji / KX_ConstraintWrapper.cpp
index 987125ca9ba5bb93c1c161f630dd5ac7e956b46e..b54da6eb753c4db3ec9c25cbf049aa0a81c5c008 100644 (file)
@@ -53,8 +53,7 @@ PyObject* KX_ConstraintWrapper::PyTestMethod(PyObject* self,
                                                                                        PyObject* kwds)
 {
        
                                                                                        PyObject* kwds)
 {
        
-       Py_INCREF(Py_None);
-       return Py_None;
+       Py_RETURN_NONE;
 }
 
 PyObject* KX_ConstraintWrapper::PyGetConstraintId(PyObject* self, 
 }
 
 PyObject* KX_ConstraintWrapper::PyGetConstraintId(PyObject* self,