From a670041793546cd5e03a82fe20480f1ad406ed9a Mon Sep 17 00:00:00 2001 From: Tigran Gasparian Date: Mon, 3 Sep 2018 10:41:38 +0200 Subject: [PATCH] Small fix in executePluginCommand, now you can pass int arguments while keeping floats null without errors. --- examples/pybullet/pybullet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 142a6902e..2291a195d 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -8400,7 +8400,7 @@ static PyObject* pybullet_executePluginCommand(PyObject* self, PyObject* seqIntArgs = intArgs?PySequence_Fast(intArgs, "expected a sequence"):0; PyObject* seqFloatArgs = floatArgs?PySequence_Fast(floatArgs, "expected a sequence"):0; int numIntArgs = seqIntArgs?PySequence_Size(intArgs):0; - int numFloatArgs = seqIntArgs?PySequence_Size(floatArgs):0; + int numFloatArgs = seqFloatArgs?PySequence_Size(floatArgs):0; int i; for (i=0;i