- fix for crash with MSVC compiler, global array constraintsTypeInfo overwriting caused memory corruption

Aligorith: please check, I think fix is quite obvious though.
This commit is contained in:
2007-11-14 21:19:49 +00:00
parent c3bbd543c7
commit a219d6e238

View File

@@ -3082,7 +3082,7 @@ static bConstraintTypeInfo CTI_TRANSFORM = {
*/
/* These globals only ever get directly accessed in this file */
static bConstraintTypeInfo *constraintsTypeInfo[NUM_CONSTRAINT_TYPES];
static bConstraintTypeInfo *constraintsTypeInfo[NUM_CONSTRAINT_TYPES+1];
static short CTI_INIT= 1; /* when non-zero, the list needs to be updated */
/* This function only gets called when CTI_INIT is non-zero */