diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 82249434a..4cad53bd7 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -448,7 +448,7 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P sPhysicsClients1[freeIndex] = 0; sPhysicsClientsGUI[freeIndex] = 0; sNumPhysicsClients++; - return -1; + return PyInt_FromLong(-1); } } }