From a219d6e238949f68edfdaa7c8350fb39df454c5b Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Wed, 14 Nov 2007 21:19:49 +0000 Subject: - fix for crash with MSVC compiler, global array constraintsTypeInfo overwriting caused memory corruption Aligorith: please check, I think fix is quite obvious though. --- source/blender/blenkernel/intern/constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/constraint.c') diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 558c90b37db..2dc488f8377 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -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 */ -- cgit v1.2.3