From bf6d805228b542334004265896b501a8f38c3e40 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Tue, 9 Jan 2018 08:43:00 -0800 Subject: [PATCH] fix compile issues on Windows after recent softbody patch --- examples/pybullet/pybullet.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 2621f21ea..7028789d1 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -318,6 +318,8 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P int key = SHARED_MEMORY_KEY; int udpPort = 1234; int tcpPort = 6667; + int argc = 0; + char** argv=0; const char* hostName = "localhost"; @@ -357,8 +359,6 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P } } - int argc = 0; - char** argv=0; if (options) { int i; @@ -5754,9 +5754,10 @@ static PyObject* pybullet_createCollisionShapeArray(PyObject* self, PyObject* ar } - b3SharedMemoryCommandHandle commandHandle = b3CreateCollisionShapeCommandInit(sm); + { + b3SharedMemoryCommandHandle commandHandle = b3CreateCollisionShapeCommandInit(sm); int numShapeTypes = 0; int numRadius = 0; int numHalfExtents = 0;