game engine python api
[blender.git] / source / gameengine / GameLogic / SCA_ILogicBrick.cpp
index e73358bc1e89546aa1f68b859348b6eca9973731..f5512664d8fcbcbdb8808ceb384abef58e57f32f 100644 (file)
@@ -271,8 +271,7 @@ PyObject* SCA_ILogicBrick::PyGetOwner(PyObject* self)
        }
 
        printf("ERROR: Python scriptblock without owner\n");
-       Py_INCREF(Py_None);
-       return Py_None;//Int_FromLong(IsPositiveTrigger());
+       Py_RETURN_NONE; //Int_FromLong(IsPositiveTrigger());
 }