[Bf-blender-cvs] [07a7d77] master: Fix: solved BGE compiler error on Linux/gcc

Sybren A. Stüvel noreply at git.blender.org
Mon Apr 20 04:58:38 CEST 2015


Commit: 07a7d77ec1a27d64784412eddfe21a6fbd874e1b
Author: Sybren A. Stüvel
Date:   Mon Apr 20 10:58:25 2015 +0800
Branches: master
https://developer.blender.org/rB07a7d77ec1a27d64784412eddfe21a6fbd874e1b

Fix: solved BGE compiler error on Linux/gcc

===================================================================

M	source/gameengine/Expressions/KX_PythonCallBack.cpp

===================================================================

diff --git a/source/gameengine/Expressions/KX_PythonCallBack.cpp b/source/gameengine/Expressions/KX_PythonCallBack.cpp
index 637441d..946a385 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;




More information about the Bf-blender-cvs mailing list