fix return values in pybullet to be Pythonic.

This commit is contained in:
Erwin Coumans
2017-09-13 16:08:30 -07:00
parent 6942a9f8ef
commit 7e0ca070e0

View File

@@ -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);
}
}
}