Return NONE properly from test API point

This commit is contained in:
John McCardle 2023-02-27 07:01:46 -05:00
parent a4d0efe334
commit 6d05f8bc63
1 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,10 @@ PyObject* McRFPy_API::_drawSprite(PyObject *self, PyObject *args)
int ti, gx, gy;
if (!PyArg_ParseTuple(args, "iii", &ti, &gx, &gy)) return NULL;
drawSprite(ti, gx, gy);
return NULL;
// return None correctly
Py_INCREF(Py_None);
return Py_None;
}
void McRFPy_API::api_init() {