diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-04-20 05:58:25 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-04-20 05:58:25 +0300 |
commit | 07a7d77ec1a27d64784412eddfe21a6fbd874e1b (patch) | |
tree | d3ec248f1e7bd5c57ea82b6483cd94aabf5d5b1f | |
parent | 5db143efbbe1fd7c8ecbfc643c5687fdf4e85e2a (diff) |
Fix: solved BGE compiler error on Linux/gcc
-rw-r--r-- | source/gameengine/Expressions/KX_PythonCallBack.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/KX_PythonCallBack.cpp b/source/gameengine/Expressions/KX_PythonCallBack.cpp index 637441d3a9d..946a385f306 100644 --- a/source/gameengine/Expressions/KX_PythonCallBack.cpp +++ b/source/gameengine/Expressions/KX_PythonCallBack.cpp @@ -84,7 +84,9 @@ static PyObject *CreatePythonTuple(unsigned int argcount, PyObject **arglist) void RunPythonCallBackList(PyObject *functionlist, PyObject **arglist, unsigned int minargcount, unsigned int maxargcount) { unsigned int size = PyList_Size(functionlist); - PyObject *argTuples[(maxargcount - minargcount) + 1] = {NULL}; + PyObject *argTuples[(maxargcount - minargcount) + 1]; + + argTuples[0] = NULL; for (unsigned int i = 0; i < size; ++i) { unsigned int funcargcount = 0; |