Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-04-20 05:58:25 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-04-20 05:58:25 +0300
commit07a7d77ec1a27d64784412eddfe21a6fbd874e1b (patch)
treed3ec248f1e7bd5c57ea82b6483cd94aabf5d5b1f /source/gameengine
parent5db143efbbe1fd7c8ecbfc643c5687fdf4e85e2a (diff)
Fix: solved BGE compiler error on Linux/gcc
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Expressions/KX_PythonCallBack.cpp4
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;